ef+mvc实现删除与伪静态
//更具id删除用户
public ActionResult DeleteById(int id){
//通过ef实现删除
UserDAL ud = new UserDAL();
bool isdelete = ud.DeleteById(id);
if (isdelete == true)
{
return RedirectToAction("Index");
}
else
{
return View();
}
}
//更具id删除用户
public ActionResult DeleteById(int id)