Esempio n. 1
0
        public async Task <ActionResult> DeleteTag(int id)
        {
            var Tag = await _tagServices.GetTagAsync(id);

            if (Tag == null)
            {
                return(NotFound());
            }
            var result = await _tagServices.DeleteTagAsync(Tag);

            /*_context.Tags.Remove(Tag);
             * await _context.SaveChangesAsync();*/

            return(Ok(result.DeletedEntity));
        }