public ActionResult Update(ListItemCommentModel model) { if (!CheckPermission(ListsPermissions.ManageLists)) { return(new HttpUnauthorizedResult()); } var comment = commentService.GetById(model.Id); comment.Name = model.Name; comment.Email = model.Email; comment.Website = model.Website; comment.IsApproved = model.IsApproved; comment.Comments = model.Comments; commentService.Save(comment); return(new AjaxResult().NotifyMessage("UPDATE_ENTITY_COMPLETE").CloseModalDialog()); }