public async Task <ActionResult <IEnumerable <Roulette> > > Get()
        {
            IEnumerable <Roulette> roulettes = null;
            await Task.Run(() =>
            {
                roulettes = repository.GetAll();
            });

            if (!roulettes.Any())
            {
                return(NotFound());
            }

            return(Ok(roulettes));
        }
Пример #2
0
 public List <Roulette> GetAll()
 {
     return(_rouletteRepository.GetAll());
 }