public IHttpActionResult GetNavigations(int type = 0) { var res = new ResponseBase(); try { var service = new WxService(); var data = service.GetNavigations(type); res.resData = data; } catch (Exception ex) { res.code = "100"; res.msg = ex.Message; } return(Ok(res)); }