コード例 #1
0
        public async Task <GameConfig> CreateGame(GameConfig game, User activeDev)
        {
            using (var trans = TransactionScopeFactory.Create())
            {
                await ConfigRepo.CreateGame(game);

                trans.Complete();
            }
            game = (await ConfigRepo.RetrieveGamesConfigByIds(false, game.Id)).FirstOrDefault();
            return(game);
        }