예제 #1
0
        public List <TournamentWithAllRoundsDto> GetAllRoundFromATournament(int tournamentId)
        {
            var rounds = _roundRepository.GetAllRoundFromATournament(tournamentId).ToList();

            return(rounds.Select(round => new TournamentWithAllRoundsDto
            {
                RoundId = round.Id
            })
                   .ToList());
        }