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