예제 #1
0
 public List <Bet> GetAll()
 {
     return(BetRepository.GetAll());
 }
예제 #2
0
 public async Task <IEnumerable <Bet> > GetBets(Func <Bet, bool> predicate)
 {
     return((await _repository.GetAll(predicate)).OrderByDescending(b => b.Created));
 }