public IHttpActionResult GetAuthoritycodes() { try { BaseInfo_Service bis = new BaseInfo_Service(); var list = bis.Get_Authority_Codes(); return(Json(new { code = 1, msg = "ok", list = list })); } catch (Exception e) { return(Json(new { code = 0, msg = e.Message })); } }
public IHttpActionResult SysMenutypes() { try { BaseInfo_Service bis = new BaseInfo_Service(); var list = bis.Get_MenuType(); return(Json(new { code = 1, msg = "ok", list = list })); } catch (Exception e) { return(Json(new { code = 0, msg = e.Message })); } }
public IHttpActionResult Del_AuthCodes(int id) { try { BaseInfo_Service bis = new BaseInfo_Service(); int cnt = bis.Remove_Authority_Codes(id); return(cnt > 0 ? Json(new { code = 1, msg = "ok" }) : Json(new { code = 0, msg = "error" })); } catch (Exception e) { return(Json(new { code = 0, msg = e.Message })); } }
public IHttpActionResult CruisesInfo() { try { BaseInfo_Service sev = new BaseInfo_Service(); var list = sev.Get_Cruises(); return(Json(new { code = 1, msg = "ok", list = list })); } catch (Exception e) { return(Json(new { code = 0, msg = e.Message })); } }
public IHttpActionResult Edit_AuthCodes(sys_authority_code data) { try { BaseInfo_Service bis = new BaseInfo_Service(); int cnt = bis.Edit_Authority_Codes(data); return(cnt > 0 ? Json(new { code = 1, msg = "ok" }) : Json(new { code = 0, msg = "error" })); } catch (Exception e) { return(Json(new { code = 0, msg = e.Message })); } }