Exemple #1
0
        public async Task <IActionResult> DeleteTag([FromRoute] int id)
        {
            var tag = await _tagManager.GetTag(id);

            if (tag == null)
            {
                return(NotFound("Tag does not exist."));
            }

            _tagManager.DeleteTag(tag);

            return(Ok());
        }
 public async Task DeleteTag(int id) => await _context.DeleteTag(id);