public IEnumerable <BetResult> Close(int id)
        {
            var roulette = new Roulette();

            if (roulette.Find(id))
            {
                if (roulette.Status == Status.Close)
                {
                    throw new Exception("Roulette already close");
                }
                roulette.Status = Status.Close;
                roulette.Edit();
            }
            else
            {
                return(null);
            }
            var bet = new Bet()
            {
                IdRoulette = id
            };
            var bets    = bet.FindAllByRoulette();
            var results = bet.FindResults(bets);

            return(results);
        }
        public bool Put(int id)
        {
            var roulette = new Roulette();
            var bet      = new Bet();

            bet.IdRoulette = id;
            if (roulette.Find(id))
            {
                if (roulette.Status == Status.Open)
                {
                    this.logger.LogWarning($"Roulette {id} is already open");
                    return(false);
                }
                bet.DeleteBetsByRoulette();
                roulette.Status = Status.Open;
                roulette.Edit();
                return(true);
            }
            else
            {
                this.logger.LogWarning($"Does not exist roulette with the id {id}");
                return(false);
            }
        }