private IQueryable <Team> FilterTeams(IQueryable <Team> query, TeamFilter filter) { if (filter != null) { query = filter.FilterTeams(query); } return(query); }
public async Task <IEnumerable <Team> > GetAllWithFilter(TeamFilter filter) { // do nothing with filter atm return(await FilterTeams(db.Teams.Include(t => t.Country), filter).ToListAsync()); }