示例#1
0
 public ActionResult Info(CreateCommentViewDto createComment, int postId)
 {
     if (!ModelState.IsValid)
     {
         return(RedirectToAction(HomeActions.Info, new { id = postId }));
     }
     _commentService.AddCreatedComment(createComment, postId);
     return(RedirectToAction(HomeActions.Info, new { id = postId }));
 }