public IActionResult Index(int compID) { var leagueSeasonHelper = new LeagueSeasonHelper(); leagueSeasonHelper.CompetitionID = compID; leagueSeasonHelper.Description = _leagueService.GetDescription(compID); leagueSeasonHelper.Season = _seasonService.GetSeason(); return(View(leagueSeasonHelper)); }
public async Task <IActionResult> Index(int compID, int monthID) { //ToDo - Return matches node from service var matchesCompetitionRoot = await _matchService.GetFixturesForMonth(compID, monthID); var matchesCompetitionHelper = new MatchesCompetitionHelper(); matchesCompetitionHelper.Description = _leagueService.GetDescription(compID); matchesCompetitionHelper.MatchesCompetition = matchesCompetitionRoot.MatchesCompetition; return(View(matchesCompetitionHelper)); }
public async Task <IActionResult> Index(int compID) { //ToDo - Return league table node from service var leagueTableRoot = await _leagueTableService.GetTable(compID); var leagueTableHelper = new LeagueTableHelper(); leagueTableHelper.Description = _leagueService.GetDescription(compID); leagueTableHelper.LeagueTable = leagueTableRoot.LeagueTable; return(View(leagueTableHelper)); }