Esempio n. 1
0
 public HttpResponseMessage GetCityList([FromUri] string ParentID)
 {
     try
     {
         NativePlaceProvider _Provider = new NativePlaceProvider();
         var result = _Provider.GetCityList(ParentID);
         return(Request.CreateResponse(HttpStatusCode.OK, result));
     }
     catch (Exception ex)
     {
         LogFactory _LogFactory = new LogFactory(this.GetType());
         _LogFactory.CreateLog(LogType.Error, "根据省ID 获取市", "GetCityList", ex);
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }
Esempio n. 2
0
 private static void GetCityList()
 {
     NativePlaceProvider _Provider = new NativePlaceProvider();
     var reult = _Provider.GetCityList("1000");
 }