public IActionResult Eliminar(int id) { try { // TODO: Add delete logic here var res = OrdenPagoLogic.Eliminar(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public int Delete(int id) { return(OrdenPagoLogic.Eliminar(id)); }