示例#1
0
        // 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);
        }
示例#2
0
        public List <Team> GetTeams()
        {
            TeamsController teamsController = new TeamsController();

            return(teamsController.TeamsRequest());
        }