示例#1
0
        public ActionResult RemoveTarjeta(int id)
        {
            RepoDapper TarRepo = new RepoDapper();

            TarRepo.BorrarTarjeta(id);
            return(RedirectToAction("Tarjetas"));
        }
示例#2
0
 public ActionResult BorrarTarjeta(int id)
 {
     try
     {
         RepoDapper TarRepo = new RepoDapper();
         TarRepo.BorrarTarjeta(id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }