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)); } }