public ActionResult AddComment(CommentViewModel model) { if (Helpers.UserName() == " ") { return(RedirectToAction("Index", "Home")); } boardManager.AddComment(model.BoardId, model.Text); return(RedirectToAction("Index", "Board")); }
public ActionResult AddComment(CommentViewModel model) { if (Helpers.UserName() == " ") { return(RedirectToAction("Index", "Home")); } boardManager.AddComment(model.BoardId, model.Text); return(RedirectToAction("Index", "Board")); }