public HttpResponseMessage GetProfessionList() { try { AccountProvider _Provider = new AccountProvider(); var result = _Provider.GetProfessionList(); return(Request.CreateResponse(HttpStatusCode.OK, result)); } catch (Exception ex) { LogFactory _LogFactory = new LogFactory(this.GetType()); _LogFactory.CreateLog(LogType.Error, "获取专业列表", "GetProfessionList", ex); return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }