public ActionResult user_edit(usersModel u) { //根据Users做修改 if (iub.Update(u) > 0) { return(Content("<script>alert('修改成功');window.location.href='/user_list/user_list'</script>")); } else { return(Content("<script>alert('修改失败');window.location.href='/user_list/user_list'</script>")); } }
public ActionResult Edit(usersModel um) { if (us.Update(um) > 0) { return(JavaScript("alert('修改成功');window.location.href='/usersGuanli/Index'")); } else { ViewBag.dt = um; return(View()); } }