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