public async Task <IActionResult> CancelBet([FromBody] BetRegisterDto betRegisterDto) { betRegisterDto.Username = betRegisterDto.Username.ToLower(); var betToCreate = new Bet { TeamId = betRegisterDto.TeamId }; var createUser = await _repo.CancelBet(betToCreate, betRegisterDto.Username); return(StatusCode(201)); }