示例#1
0
        public HttpResponseMessage GetCitiesByState(int id)
        {
            var city   = new Business.City();
            var result = city.GetByState(id);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
示例#2
0
 public static string[] GetCities(int provinceID)
 {
     Business.City cityController = new Business.City();
     return(cityController.GetCities(provinceID));
 }
示例#3
0
 public static DataTable GetPagedCityNumbers(int provinceID, int cityID, Business.NumberType numberRecipientType, long downRange, int pageSize)
 {
     Business.City cityController = new Business.City();
     return(cityController.GetPagedCityNumbers(provinceID, cityID, numberRecipientType, downRange, pageSize));
 }
示例#4
0
 public static DataTable GetCities(Guid provinceGuid)
 {
     Business.City cityController = new Business.City();
     return(cityController.GetCities(provinceGuid));
 }
 public CityController()
 {
     _city = new Business.City();
 }