Ejemplo n.º 1
0
 public static District QueryDistrict(int DistrictID)
 {
     using (DAL.DistrictService districtService = new DAL.DistrictService()) {
         return(districtService.GetAll(i => i.Id == DistrictID).FirstOrDefault());
     }
 }
Ejemplo n.º 2
0
 public static List <District> QueryDistrictByCity(int CityID)
 {
     using (DAL.DistrictService districtService = new DAL.DistrictService()) {
         return(districtService.GetAll(m => m.CityID == CityID).ToList());
     }
 }