Exemple #1
0
        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 }));
        }
Exemple #2
0
        public ActionResult DisableFromPanel(int commentId)
        {
            Comment comment = CommentDAO.FindId(commentId);

            comment.Status = 1;
            CommentDAO.EditComment(comment);

            return(RedirectToAction("UserPanel", "User"));
        }