Ejemplo n.º 1
0
        public async Task <Game> CreateNewGameAsync(string gameVariantId, string organizationId, string gameMasterUserId)
        {
            var gameVariant = await _GameVariantDataAccess.GetGameVariantAsync(gameVariantId).ConfigureAwait(false);

            if (gameVariant == null)
            {
                return(null);
            }

            return(await _GameDataAccess.CreateNewGameAsync(gameVariant, organizationId, gameMasterUserId).ConfigureAwait(false));
        }