public ActionResult Nuevo(com_TerminoPago_Info model)
 {
     if (!bus_termino.guardarDB(model))
     {
         return(View(model));
     }
     return(RedirectToAction("Index"));
 }
Пример #2
0
 public ActionResult Nuevo(com_TerminoPago_Info model)
 {
     if (!bus_termino.guardarDB(model))
     {
         return(View(model));
     }
     return(RedirectToAction("Consultar", new { IdEmpresa = model.IdEmpresa, IdTerminoPago = model.IdTerminoPago, Exito = true }));
 }
 public ActionResult Nuevo(com_TerminoPago_Info model)
 {
     if (bus_termino.validar_existe_idTermino(model.IdTerminoPago))
     {
         ViewBag.mensaje = "El código ya se encuentra registrado";
         return(View(model));
     }
     if (!bus_termino.guardarDB(model))
     {
         return(View(model));
     }
     return(RedirectToAction("Index"));
 }