public JsonResult Del(string id) { Result r = new Result(); try { MenuDataAccess.DelMenu(id); r.Set(ResultCode.Success, "作業成功"); } catch (Exception e) { r.Set(ResultCode.Error, e.Message); } return(Json(r, JsonRequestBehavior.AllowGet)); }