Exemplo n.º 1
0
        public async Task <IActionResult> CloseRoulette([FromBody] dynamic body)
        {
            try
            {
                CustomResponse <List <Bet> > response = await _rouletteService.CloseBets(body.rouletteId.Value);

                return(Ok(response));
            }
            catch (MessageException exception)
            {
                return(Problem(
                           detail: exception.Message,
                           title: exception.StatusName));
            }
        }