コード例 #1
0
        private async Task <long> CreateRoundAndReturnId(long gameId)
        {
            Round round = new Round();

            round.GameId      = gameId;
            round.RoundNumber = await _roundRepository.GetNewRoundNumber(gameId);

            long Id = await _roundRepository.CreateAndReturnId(round);

            return(Id);
        }