public ActionResult AddComment(FormCollection formCollection) { AntiForgery.Validate(); var textContent = formCollection.ToTextContent(); var comment = new Comment(textContent) { Published = true }; var data = new JsonResultData(ModelState); data.RunWithTry((resultData) => { ToolkitDemoContext.Current.CommentService.Add(comment); resultData.Model = ControllerContext.RenderView("Article.CommentItem", comment); resultData.AddMessage("Add comment success!".RawLabel("AddSuccess", "Comment").ToString()); resultData.ReloadPage = false; }); return Json(data); }