コード例 #1
0
        public List <Schools> ListSchools()
        {
            citiesRepository = new CitiesRepository();
            IList <Schools> listSchools = new List <Schools>();

            listSchools.Add(new Schools("Internetional House - Premium", citiesRepository.getCitiesByName("Berlin")));
            listSchools.Add(new Schools("Berlin Institute of Technology - Normal", citiesRepository.getCitiesByName("Berlin")));
            listSchools.Add(new Schools("Evanz - Normal", citiesRepository.getCitiesByName("Quebec")));
            listSchools.Add(new Schools("Montreal College - Normal", citiesRepository.getCitiesByName("Quebec")));
            listSchools.Add(new Schools("Thompsom - Budget", citiesRepository.getCitiesByName("Dublin")));
            listSchools.Add(new Schools("DIT - Normal", citiesRepository.getCitiesByName("Dublin")));

            return(listSchools.ToList());
        }
コード例 #2
0
 public Cities getCityByName(string cityName)
 {
     return(citiesRepository.getCitiesByName(cityName));
 }