public async Task Delete(TEntity entity) { _context.Set <TEntity>().Remove(entity); await _context.SaveChangesAsync(); }