public async Task <ResponseList <Roulette> > GetAllRoulettes() { ResponseList <Roulette> response = new ResponseList <Roulette>(); try { response.List = await rouletteRepository.GetAll(); response.Code = Enumerators.State.Ok.GetDescription(); } catch (Exception) { //TODO Save in log response.Code = Enumerators.State.Error.GetDescription(); response.Message = "Error getting all bets."; } return(response); }
public object GetAll() { return(_domain.GetAll()); }