Ejemplo n.º 1
0
        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"));
        }