public ActionResult Delete(int id) { if (!CheckPermission(ListsPermissions.ManageLists)) { return(new HttpUnauthorizedResult()); } var comment = commentService.GetById(id); commentService.Delete(comment); return(new AjaxResult().NotifyMessage("DELETE_ENTITY_COMPLETE")); }