public ActionResult AddComment(CommentViewModel model) { model.Author = HttpContext.User.Identity.Name; new EventManager().AddComment(model.GetAsComment()); return(RedirectToAction("Details/" + model.EventId)); }
public ActionResult AddComment(CommentViewModel model) { model.Author = HttpContext.User.Identity.Name; new EventManager().AddComment(model.GetAsComment()); return(RedirectToAction("Details/" + model.EventId)); }