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