コード例 #1
0
        public List <City> GetAllCities()
        {
            var citiesRepo = new CitiesRepository();
            var cities     = citiesRepo.GetAllCities();

            return(cities);
        }
コード例 #2
0
 public ICollection <City> GetAllCities()
 {
     return(citiesRepo.GetAllCities()
            .ToList());
 }