Пример #1
0
        public IActionResult Eliminar(int id)
        {
            try
            {
                // TODO: Add delete logic here
                var res = OrdenPagoLogic.Eliminar(id);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }
Пример #2
0
 public int Delete(int id)
 {
     return(OrdenPagoLogic.Eliminar(id));
 }