public ActionResult JLdisagree(int id) { LeaveManager lm = new LeaveManager(); string leaveover = "不批准"; bool pdd = lm.UpdateL(id, leaveover); if (pdd) { string leaveoline = "不可见"; lm.UpdateC(id, leaveoline); return(Redirect("~/LiuXin/MangerLeave/Index")); } else { return(Content("<script>alert('不允许批准');window.location.href='~/LiuXin/MangerLeave/Index';</script>")); } }