Beispiel #1
0
 public HttpResponseMessage GetProvinceList()
 {
     try
     {
         NativePlaceProvider _Provider = new NativePlaceProvider();
         var result = _Provider.GetProvinceList();
         return(Request.CreateResponse(HttpStatusCode.OK, result));
     }
     catch (Exception ex)
     {
         LogFactory _LogFactory = new LogFactory(this.GetType());
         _LogFactory.CreateLog(LogType.Error, "获取省列表", "GetProvinceList", ex);
         return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }
Beispiel #2
0
 private static void GetProvinceList()
 {
     NativePlaceProvider _Provider = new NativePlaceProvider();
     var reult = _Provider.GetProvinceList();
 }