Exemplo n.º 1
0
 public Task <List <Rule> > GetActiveRules()
 {
     return(AggregateCollection.Find(a => a.IsActive == true).ToListAsync());
 }
Exemplo n.º 2
0
 public Task <Rule> Get(int id)
 {
     return(AggregateCollection.Find(a => a.Id == id).FirstOrDefaultAsync());
 }