public async Task <ActionResult <IEnumerable <Roulette> > > ListRoulette() { try { return(Ok(await _rouletterepository.ListRoulette())); } catch (System.Exception) { throw; } }
public IActionResult List(string state) { try { var oRoulette = _rouletteRepository.ListRoulette(state); var rouletteDto = _mapper.Map <IEnumerable <RouletteDTO> >(oRoulette); return(Ok(rouletteDto)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public async Task <ActionResult> List() { return(Ok(await _repository.ListRoulette())); }