public List <O_RESULTADO> RegistrarGenero(string strCredencial, O_LISTAR_GENERO oGenero, ref string strMensajeError) { try { return(_repositorioGestion.RegistrarGenero(strCredencial, oGenero, ref strMensajeError).ToList()); } catch (Exception ex) { strMensajeError = "Aplicacion Error " + System.Reflection.MethodBase.GetCurrentMethod().Name + "Error: " + ex.InnerException; return(null); } }
public List <O_LISTAR_GENERO> ListarGenero(string strCredencial, O_LISTAR_GENERO oListarGenero, ref string strMensajeError) { try { var _servicio = FabricaIoC.Contenedor.Resolver <IAplicacionReportes>(); return(_servicio.ListarGenero(strCredencial, oListarGenero, ref strMensajeError).ToList()); } catch (Exception e) { strMensajeError += e.Message + " error 500: " + e.InnerException; return(null); } }
public List <O_RESULTADO> RegistrarGenero(string strCredencial, O_LISTAR_GENERO oGenero, ref string strMensajeError) { try { var _servicio = FabricaIoC.Contenedor.Resolver <IAplicacionGestion>(); return(_servicio.RegistrarGenero(strCredencial, oGenero, ref strMensajeError)); } catch (Exception e) { strMensajeError += e.Message + " - " + e.InnerException; return(null); } }
public List <O_LISTAR_GENERO> ListarGenero(string strCredencial, O_LISTAR_GENERO oListarGenero, ref string strMensajeError) { try { var objListado = _repositorioReportes.ListarGenero(strCredencial, oListarGenero, ref strMensajeError); return(objListado); } catch (Exception ex) { strMensajeError = "CAplicacionListados: method ListarFeriados(...)" + System.Reflection.MethodBase.GetCurrentMethod().Name + "Error 300:" + ex.Message + '-' + ex.InnerException; return(null); } }
/// <summary> /// LISTAR GENERO /// </summary> /// <param name="strCredencial"></param> /// <param name="oListarFeriado"></param> /// <param name="strMensajeError"></param> /// <returns></returns> public List <O_LISTAR_GENERO> ListarGenero(string strCredencial, O_LISTAR_GENERO oListarGenero, ref string strMensajeError) { using (var ctx = new EntidadesSisReservas())//conexion a la ase con using y vatodo el codigo { try { var objListado = ctx.PGET_LISTADOS_P_LISTAR_GENERO(strCredencial, oListarGenero.ID_GENERO, oListarGenero.DESCRIPCION, oListarGenero.APP_ID_USUARIO, oListarGenero.AUD_ESTADO, oListarGenero.FECHA_REGISTRO ).ToList(); return(objListado); } catch (Exception ex) { strMensajeError = "Error 200: " + ex.Message + "-" + ex.InnerException; return(null); } } }
public List <O_RESULTADO> RegistrarGenero(string strCredencial, O_LISTAR_GENERO oGenero, ref string strMensajeError) { using (var ctx = new EntidadesSisReservas()) { try { var objResultado = ctx.PGET_GESTION_P_REGISTRAR_GENERO(strCredencial, oGenero.ID_GENERO, oGenero.DESCRIPCION, oGenero.APP_ID_USUARIO, oGenero.AUD_ESTADO, oGenero.FECHA_REGISTRO ).ToList(); return(objResultado); } catch (Exception ex) { strMensajeError = "CPersistenciaRepositorio " + ex.Message + " " + ex.InnerException; return(null); } } }