/// <summary> /// 删除方法调用 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult JobDelete(int id) { int i = bll.Del(id); if (i > 0) { return(Content("<script>alert('删除成功');location.href='/Job/Index';</script>")); // return Redirect("/Job/Index"); } else { return(Content("<script>alert('删除失败');</script>")); } }