public ActionResult MatchResults(string teamName) { ViewBag.Title = $"{teamName} Match Results"; var results = new MatchResultsRepository(ServerResultsFile.Get()).GetBy(teamName); return(View("MatchResults", results)); }
private static List <TeamPosition> GetLeagueStandings() { return(new LeagueTable(new MatchResultsRepository(ServerResultsFile.Get())).GetStandings()); }