예제 #1
0
파일: Engine.cs 프로젝트: Sprangdeg/Fotboll
        public Team[] GetLeagueTeams(KeyValuePair <Guid, string> league)
        {
            if (league.Key == SeasonMatches.PremierLeague_2014_2015.Key)
            {
                return(resource.GetLeagueTeams(LeaguesTables.PremierLeague_2014_2015));
            }

            if (league.Key == SeasonMatches.PremierLeague_2013_2014.Key)
            {
                return(resource.GetLeagueTeams(LeaguesTables.PremierLeague_2013_2014));
            }

            if (league.Key == SeasonMatches.PremierLeague_2012_2013.Key)
            {
                return(resource.GetLeagueTeams(LeaguesTables.PremierLeague_2012_2013));
            }

            if (league.Key == SeasonMatches.Championship_2014_2015.Key)
            {
                return(resource.GetLeagueTeams(LeaguesTables.Championship_2014_2015));
            }

            if (league.Key == SeasonMatches.Championship_2013_2014.Key)
            {
                return(resource.GetLeagueTeams(LeaguesTables.Championship_2013_2014));
            }

            if (league.Key == SeasonMatches.Championship_2012_2013.Key)
            {
                return(resource.GetLeagueTeams(LeaguesTables.Championship_2012_2013));
            }

            else
            {
                return(resource.GetLeagueTeams(league));
            }
        }