Ejemplo n.º 1
0
        public IEnumerable <Pairing> GetListPairingInTourRound(int roundID, int tourID)
        {
            var pairings = _pairingRepository.GetListPairingInTourRound(roundID, tourID);

            foreach (var pair in pairings)
            {
                pair.PlayerInPairs = _playerInPairRepository.GetListPlayerInParing(pair.PairingID);
            }

            return(pairings);
        }
Ejemplo n.º 2
0
        public IEnumerable <Round> GetAllRoundPairingInTournament(int id)
        {
            var rounds = _roundRepository.GetListRoundByTournament(id);

            foreach (var round in rounds)
            {
                round.Pairings = _pairingRepository.GetListPairingInTourRound(round.ID, id);
                foreach (var pair in round.Pairings)
                {
                    pair.PlayerInPairs = _playerInPairRepository.GetListPlayerInParing(pair.PairingID);
                }
            }

            return(rounds);
        }
Ejemplo n.º 3
0
 public IEnumerable <PlayerInPair> GetListPlayerInParing(int pairingID)
 {
     return(_playerInPairRepository.GetListPlayerInParing(pairingID));
 }