public HttpResponseMessage GetAreaList() { try { AccountProvider _Provider = new AccountProvider(); var result = _Provider.GetAreaList(); return(Request.CreateResponse(HttpStatusCode.OK, result)); } catch (Exception ex) { LogFactory _LogFactory = new LogFactory(this.GetType()); _LogFactory.CreateLog(LogType.Error, "获取所在地区", "GetAreaList", ex); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }