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