diff --git a/Project-Unite/Controllers/BlogController.cs b/Project-Unite/Controllers/BlogController.cs index 15591df..bc01229 100644 --- a/Project-Unite/Controllers/BlogController.cs +++ b/Project-Unite/Controllers/BlogController.cs @@ -160,6 +160,7 @@ public ActionResult PostBlog(PostBlogViewModel model) if (!allowed.Contains(c)) blog.Id = blog.Id.Replace(c, '_'); } + blog.Id += "_" + db.BlogPosts.Count().ToString(); blog.PostedAt = DateTime.Now; db.BlogPosts.Add(blog); db.SaveChanges();