Пример #1
0
 public static District QueryDistrict(int DistrictID)
 {
     using (DAL.DistrictService districtService = new DAL.DistrictService()) {
         return(districtService.GetAll(i => i.Id == DistrictID).FirstOrDefault());
     }
 }
Пример #2
0
 public static List <District> QueryDistrictByCity(int CityID)
 {
     using (DAL.DistrictService districtService = new DAL.DistrictService()) {
         return(districtService.GetAll(m => m.CityID == CityID).ToList());
     }
 }