public ActionResult Comment(int postId, string commentBody) { _postCommentService.Add(UserHelper.UserId.Value, postId, commentBody); return(RedirectToAction(nameof(Index), "Read", new { postId = postId })); }
public ActionResult Comment(int postId, string commentBody) { _postCommentService.Add(UserHelper.UserId.Value, postId, commentBody); return(RedirectToAction(nameof(Index), "Read", new { postId = postId })); }