Example #1
0
 public IActionResult AddBlogComment(BlogComment bc)
 {
     bc.PosterId   = User.Identity.GetPersonId();
     bc.DatePosted = DateTime.Now;
     blogService.AddBlogComment(bc);
     return(RedirectToAction("ReadBlog", new { BlogId = bc.BlogId }));
 }