public async Task <NodeTag> RemoveTag(int tagId)
        {
            NodeTag tag = await _context.Tags
                          .Include(t => t.Attachments)
                          .Include(t => t.ProfilesFilterSelections)
                          .SingleAsync(t => t.ID == tagId);

            _context.RemoveRange(tag.Attachments);
            _context.RemoveRange(tag.ProfilesFilterSelections);
            tag.Attachments = null;
            tag.ProfilesFilterSelections = null;
            _context.Remove(tag);
            await _context.SaveChangesAsync();

            return(tag);
        }