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()); }
public Cities getCityByName(string cityName) { return(citiesRepository.getCitiesByName(cityName)); }