Exemplo n.º 1
0
        public Core.Game.Entities.Round GetOrCreateRound(string roundId,
                                                         Guid gameId, Guid playerId, Guid brandId)
        {
            if (Rounds.Any(x => x.ExternalRoundId == roundId))
            {
                return(GetRound(roundId));
            }

            var brand = Brands.Single(x => x.Id == brandId);

            return(new Core.Game.Entities.Round(roundId, gameId, playerId, brand));
        }