Esempio n. 1
0
        public virtual ActionResult NewsTagDelete(int id)
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageNews))
            {
                return(AccessDeniedView());
            }

            var tag = _newsTagService.GetNewsTagById(id);

            if (tag == null)
            {
                throw new ArgumentException("No news tag found with the specified id");
            }
            _newsTagService.DeleteNewsTag(tag);

            return(new NullJsonResult());
        }