public List <O_RESULTADO> RegistrarAsientoRuta(string strCredencial, O_ASIENTO_RUTA oAsientoRuta, ref string strMensajeError)
        {
            using (var ctx = new EntidadesSisReservas())
            {
                try
                {
                    var objResultado =
                        ctx.PGET_GESTION_P_REGISTRAR_ASIENTO_RUTA(strCredencial,
                                                                  oAsientoRuta.ID_ASIENTO_RUTA,
                                                                  oAsientoRuta.ID_RUTA,
                                                                  oAsientoRuta.ID_ASIENTO,
                                                                  oAsientoRuta.ID_ESTADO_ASIENTO,
                                                                  oAsientoRuta.DESCRIPCION,
                                                                  oAsientoRuta.O_DATOS_AUD.APP_ID_USUARIO,
                                                                  oAsientoRuta.O_DATOS_AUD.AUD_ESTADO,
                                                                  oAsientoRuta.O_DATOS_AUD.FECHA_REGISTRO
                                                                  ).ToList();

                    return(objResultado);
                }
                catch (Exception ex)
                {
                    strMensajeError = "CPersistenciaRepositorio " + ex.Message + " " + ex.InnerException;
                    return(null);
                }
            }
        }
Exemplo n.º 2
0
 public List <O_RESULTADO> RegistrarAsientoRuta(string strCredencial, O_ASIENTO_RUTA oAsientoRuta, ref string strMensajeError)
 {
     try
     {
         return(_repositorioGestion.RegistrarAsientoRuta(strCredencial, oAsientoRuta, ref strMensajeError).ToList());
     }
     catch (Exception ex)
     {
         strMensajeError = "Aplicacion Error " + System.Reflection.MethodBase.GetCurrentMethod().Name + "Error: " +
                           ex.InnerException;
         return(null);
     }
 }
Exemplo n.º 3
0
 public List <O_RESULTADO> RegistrarAsientoRuta(string strCredencial, O_ASIENTO_RUTA oAsientoRuta, ref string strMensajeError)
 {
     try
     {
         var _servicio = FabricaIoC.Contenedor.Resolver <IAplicacionGestion>();
         return(_servicio.RegistrarAsientoRuta(strCredencial, oAsientoRuta, ref strMensajeError));
     }
     catch (Exception e)
     {
         strMensajeError += e.Message + " - " + e.InnerException;
         return(null);
     }
 }