コード例 #1
0
        public void DeclareWinner(Guid roundId, Guid playerId)
        {
            var entities = ValidateIds(roundId, playerId);

            _ledgerService.AwardWinnings(playerId, entities.Item1.EntrantPlayerIds.Count);

            entities.Item1.WinningPlayerId = playerId;
            entities.Item1.IsOpen          = false;
            UpdateEntity(entities.Item1, a => a.Id == roundId);
        }