public ActionResult UnableFromPost(int commentId, int postId) { Comment comment = CommentDAO.FindId(commentId); comment.Status = 0; CommentDAO.EditComment(comment); return(RedirectToAction("Detail", "Post", new { id = postId })); }
public ActionResult DisableFromPanel(int commentId) { Comment comment = CommentDAO.FindId(commentId); comment.Status = 1; CommentDAO.EditComment(comment); return(RedirectToAction("UserPanel", "User")); }