public virtual async Task Delete(int id) { var entity = await _context.Set <T>().FindAsync(id); _context.Remove(entity); }