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