Example #1
0
        public ActionResult AddComment(CommentViewModel model)
        {
            if (Helpers.UserName() == " ")
            {
                return(RedirectToAction("Index", "Home"));
            }

            boardManager.AddComment(model.BoardId, model.Text);
            return(RedirectToAction("Index", "Board"));
        }