// GET: Team Info public Team GetTeamInfo(string team) { TeamsController teamController = new TeamsController(); Team currentTeam = new Team(); foreach (Team curTeam in teamController.TeamsRequest()) { if (team == curTeam.name) { currentTeam = curTeam; } } return(currentTeam); }
public List <Team> GetTeams() { TeamsController teamsController = new TeamsController(); return(teamsController.TeamsRequest()); }