Пример #1
0
        /// <summary>
        /// Creates game with preloaded data.
        /// </summary>
        /// <returns></returns>
        public async Task <Game> Create()
        {
            var id      = CachedGames.Count;
            var newGame = new Game()
            {
                Id = id
            };

            newGame.Data = await _seedData.RetrieveData();

            CachedGames.Add(newGame);

            return(newGame);
        }