Exemple #1
0
        public async Task <Bet> CreateBet(string desc, string name)
        {
            Bet bet = new Bet(name, desc);
            await _repository.AddBet(bet);

            await _repository.SaveAsync();

            return(bet);
        }