Exemplo n.º 1
0
 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 }));
     }
 }
Exemplo n.º 2
0
 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 }));
     }
 }
Exemplo n.º 3
0
 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 }));
     }
 }
Exemplo n.º 4
0
 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 }));
     }
 }
Exemplo n.º 5
0
 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 }));
     }
 }