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); }
public async Task <IActionResult> GetElitTournament() { GrabbElitTournamentView result = await _service.GetElitTournament(); return(Ok(result)); }