Exemplo n.º 1
0
 public ActionResult BorrarDireccion(int id)
 {
     try
     {
         RepoDapper TarRepo = new RepoDapper();
         TarRepo.BorrarDireccion(id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemplo n.º 2
0
 public ActionResult DeleteDireccion(Direccion dir)
 {
     try
     {
         RepoDapper DirRepo = new RepoDapper();
         DirRepo.BorrarDireccion(dir.id);
         return(RedirectToAction("Direcciones"));
     }
     catch
     {
         return(View());
     }
 }