예제 #1
0
        public ActionResult _AddComment(string comment, int id, string userName)
        {
            var viewUserComment = new UserCommentViewModel();

            if (ModelState.IsValid)
            {
                viewUserComment = _blogService.AddUserComment(comment, id, User.Identity.Name, userName);
                return(PartialView(viewUserComment));
            }

            return(RedirectToAction("OpenPost"));
        }