Ejemplo n.º 1
0
        public ActionResult DeleteComment(int CommentId)
        {
            string message = "";

            if (InformationService.DeleteComment(CommentId, out message))
            {
                return(RedirectToAction("CommentsList"));
            }
            else
            {
                return(RedirectToAction("DeleteComment", new { CommentId = CommentId, message = message }));
            }
        }