Пример #1
0
        public ActionResult PostTagDelete(int id)
        {
            if (!_permissionService.Authorize(StandardPermissionProvider.ManagePostTags))
            {
                return(AccessDeniedView());
            }

            var tag = _postTagService.GetPostTagById(id);

            if (tag == null)
            {
                throw new ArgumentException("No post tag found with the specified id");
            }
            _postTagService.DeletePostTag(tag);

            return(new NullJsonResult());
        }