public List <O_RESULTADO> RegistrarAsiento(string strCredencial, O_ASIENTO oAsiento, ref string strMensajeError) { using (var ctx = new EntidadesSisReservas()) { try { var objResultado = ctx.PGET_GESTION_P_REGISTRAR_ASIENTO(strCredencial, oAsiento.ID_ASIENTO, oAsiento.ID_TIPO_ASIENTO, oAsiento.NUMERO, oAsiento.O_DATOS_AUD.APP_ID_USUARIO, oAsiento.O_DATOS_AUD.AUD_ESTADO, oAsiento.O_DATOS_AUD.FECHA_REGISTRO ).ToList(); return(objResultado); } catch (Exception ex) { strMensajeError = "CPersistenciaRepositorio " + ex.Message + " " + ex.InnerException; return(null); } } }
public List <O_RESULTADO> RegistrarAsiento(string strCredencial, O_ASIENTO oAsiento, ref string strMensajeError) { try { return(_repositorioGestion.RegistrarAsiento(strCredencial, oAsiento, ref strMensajeError).ToList()); } catch (Exception ex) { strMensajeError = "Aplicacion Error " + System.Reflection.MethodBase.GetCurrentMethod().Name + "Error: " + ex.InnerException; return(null); } }
public List <O_RESULTADO> RegistrarAsiento(string strCredencial, O_ASIENTO oAsiento, ref string strMensajeError) { try { var _servicio = FabricaIoC.Contenedor.Resolver <IAplicacionGestion>(); return(_servicio.RegistrarAsiento(strCredencial, oAsiento, ref strMensajeError)); } catch (Exception e) { strMensajeError += e.Message + " - " + e.InnerException; return(null); } }