常用方法
常用方法
常用方法
常用方法
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 })); }