示例#1
0
 //delete
 public ActionResult Delete(int id)
 {
     if (Session["UserEmail"] != null)
     {
         tar.EliminarTarjeta(id);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(RedirectToAction("Login", "Login"));
     }
 }
示例#2
0
 //delete
 public ActionResult Delete(int id)
 {
     tar.EliminarTarjeta(id);
     return(RedirectToAction("Index"));
 }