Exemple #1
0
 public IActionResult AddComment(string commentText, string postId)
 {
     _postService.AddNewCommentAsync(User.Identity.Name, commentText, postId);
     return(RedirectToAction("Index", "Home"));
 }