public async Task <IEnumerable <Country> > FilterBy(Expression <Func <Country, bool> > predicate) { return(await _destinationDbContext.Set <Country>().Where(predicate).ToListAsync()); }
public IEnumerable <T> Filter(Expression <Func <T, bool> > predicate) { return(_skyDbContext.Set <T>().Where(predicate).ToList()); }