예제 #1
0
        public async Task <GrabbElitTournamentView> GetElitTournament()
        {
            int version = await _dataVersionRepository.GetLastVersion();

            IEnumerable <Schedule> schedule = await _scheduleRepository.GetAll(version);

            IEnumerable <League> leagues = await _leagueRepository.GetAll(version);

            GrabbElitTournamentView result = new GrabbElitTournamentView(schedule, leagues);

            return(result);
        }
예제 #2
0
        public async Task <IActionResult> GetElitTournament()
        {
            GrabbElitTournamentView result = await _service.GetElitTournament();

            return(Ok(result));
        }