Exemplo n.º 1
0
        public async Task <IActionResult> GameRoulette(Roulette.Entities.Bet betGame)
        {
            try
            {
                var result = await _betService.GameRoulette(betGame);

                if (result == ResponseCode.Ok)
                {
                    return(Ok(result));
                }
                return(BadRequest(ResponseMessages[ResponseCode.Rejected]));
            }
            catch (Exception ex)
            {
                return(BadRequest(ResponseMessages[ResponseCode.InternalError]));
            }
        }