コード例 #1
0
        public ActionResult AddComment(CommentViewModel model)
        {
            model.Author = HttpContext.User.Identity.Name;
            new EventManager().AddComment(model.GetAsComment());

            return(RedirectToAction("Details/" + model.EventId));
        }