Ejemplo n.º 1
0
        public async Task <ActionResult <Bet> > CloseBets(Guid rouletteId)
        {
            try
            {
                ResultBet result = null;
                await Task.Run(() =>
                {
                    result = betRepository.CloseBet(rouletteID: rouletteId);
                });

                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }