コード例 #1
0
        public ActionResult AddComment(CommentNewViewModel comment, int eventId)
        {
            string userName = User.Identity.Name;

            comment.EventId = eventId;

            EventService.AddNewComment(userName, comment);

            return(RedirectToAction("Index", "Event", new { eventId = eventId }));
        }