/// <summary> /// Trae un evento como objeto Evento /// </summary> /// <param name="nombre", name="rut">nombre del evento y run del organizador a filtrar</param> /// <returns></returns> public EventoBEL traerEventoPorNombreRut(String nombre, int rut) { try { EVENTO EvenDalc = (from tmpEvento in ConexionBLL.getConexion().EVENTO where tmpEvento.NOMBRE.Equals(nombre) && tmpEvento.RUT == rut select tmpEvento).FirstOrDefault(); if (EvenDalc != null) { EventoBEL evBEL = new EventoBEL(); evBEL.IdEvento = (int)EvenDalc.ID_EVENTO; evBEL.IdRecinto = (int)EvenDalc.ID_RECINTO; evBEL.IdTipoEvento = (int)EvenDalc.ID_TIPO_EVENTO; evBEL.Nombre = EvenDalc.NOMBRE; evBEL.Rut = (int)evBEL.Rut; evBEL.Estado = EvenDalc.ESTADO; evBEL.AsientosDisponibles = (int)EvenDalc.ASIENTOS_DISPONIBLES; evBEL.Imagen = EvenDalc.IMAGEN; evBEL.Fecha = EvenDalc.FECHA.Value; evBEL.Descripcion = EvenDalc.DESCRIPCION; return(evBEL); } return(null); } catch { return(null); } }
/// <summary> /// Trae todos los registros de Cliente_Ticket como LIST por rut del Organizador y IdEvento /// </summary> /// <param name="rut">rut de usuario logeado</param> /// <returns></returns> public List <ClienteTicketBEL> traerClienteTicketOrg(int rut, int idEvento) { try { Entidades conexion = ConexionBLL.getConexion(); List <ClienteTicketBEL> cliente_ticket = (from tmpCliTick in conexion.CLIENTE_TICKET join tmpTick in conexion.TICKET on tmpCliTick.TICKET_ID_TICKET equals tmpTick.ID_TICKET join tmpEv in conexion.EVENTO on tmpTick.ID_EVENTO equals tmpEv.ID_EVENTO where tmpEv.RUT == rut && tmpEv.ID_EVENTO == idEvento select new ClienteTicketBEL() { IdTicket = (int)tmpCliTick.TICKET_ID_TICKET, ClienteRut = (int)tmpCliTick.CLIENTE_RUT, Cantidad = (int)tmpCliTick.CANTIDAD, Total = (int)tmpCliTick.TOTAL, Regalo = tmpCliTick.REGALO, Correo = tmpCliTick.CORREO, Habilitado = (int)tmpCliTick.HABILITADO, NombreEvento = tmpEv.NOMBRE }).ToList(); return(cliente_ticket); } catch { return(null); } }
/// <summary> /// Trae un Asiento de un evento en particular como objeto Asiento /// </summary> /// <param name="idEvento">id del Evento a Filtrar</param> /// <returns></returns> public AsientoBEL traerAsientoPorId(int idEvento) { try { ASIENTO asiDalc = (from tmpAsiento in ConexionBLL.getConexion().ASIENTO where tmpAsiento.ID_EVENTO == idEvento select tmpAsiento).FirstOrDefault(); if (asiDalc != null) { AsientoBEL asientoBEL = new AsientoBEL(); asientoBEL.IdAsiento = (int)asiDalc.ID_ASIENTO; asientoBEL.Numero = (int)asiDalc.NUMERO; asientoBEL.Estado = asiDalc.ESTADO; asientoBEL.IdEvento = (int)asiDalc.ID_EVENTO; asientoBEL.IdTipoAsiento = (int)asiDalc.ID_TIPO_ASIENTO; return(asientoBEL); } return(null); } catch { return(null); } }
/// <summary> /// Trae el registro de Cliente como objeto Cliente /// </summary> /// <param name="rut">rut del Cliente a Filtrar</param> /// <returns></returns> public ClienteBEL traerClientePorRut(int rut) { try { CLIENTE cliDalc = (from tmpCliente in ConexionBLL.getConexion().CLIENTE where tmpCliente.RUT == rut select tmpCliente).FirstOrDefault(); if (cliDalc != null) { ClienteBEL cliente = new ClienteBEL(); cliente.Rut = (int)cliDalc.RUT; cliente.Nombre = cliDalc.NOMBRE; cliente.Apellido = cliDalc.APELLIDO; //cliente.Direccion = cliDalc.DIRECCION; cliente.Celular = (int)cliDalc.CELULAR; //cliente.IdComuna = (int)cliDalc.ID_COMUNA; cliente.Correo = cliDalc.CORREO; cliente.Dv = Convert.ToChar(cliDalc.DV); //cliente.IdEstado = (int)cliDalc.ESTADO; return(cliente); } return(null); } catch { return(null); } }
/// <summary> /// Trae un evento como LIST /// </summary> /// <param name="idrecinto", name="rut">id del recinto del evento y run del organizador a filtrar</param> /// <returns></returns> public List <EventoBEL> traerEventoPorRecintos(int idrecinto, int rut) { try { List <EventoBEL> eventos = (from tmpEventos in ConexionBLL.getConexion().EVENTO where tmpEventos.ID_RECINTO == idrecinto && tmpEventos.RUT == rut select new EventoBEL() { IdEvento = (int)tmpEventos.ID_EVENTO, IdRecinto = (int)tmpEventos.ID_RECINTO, IdTipoEvento = (int)tmpEventos.ID_TIPO_EVENTO, Nombre = tmpEventos.NOMBRE, Descripcion = tmpEventos.DESCRIPCION, AsientosDisponibles = (int)tmpEventos.ASIENTOS_DISPONIBLES, Rut = (int)tmpEventos.RUT, Estado = tmpEventos.ESTADO, Fecha = tmpEventos.FECHA.Value, Imagen = tmpEventos.IMAGEN }).ToList(); return(eventos); } catch { return(null); } }
/// <summary> /// Agrega un evento en la base de datos /// </summary> /// <param name="Evento">objeto Evento</param> /// <returns></returns> public int agregarEvento(EventoBEL Evento) { try { Entidades conexion = ConexionBLL.getConexion(); EVENTO eventoDALC = new EVENTO(); eventoDALC.ASIENTOS_DISPONIBLES = Evento.AsientosDisponibles; eventoDALC.DESCRIPCION = Evento.Descripcion; eventoDALC.ID_TIPO_EVENTO = Evento.IdTipoEvento; eventoDALC.ID_RECINTO = Evento.IdRecinto; eventoDALC.RUT = Evento.Rut; eventoDALC.ESTADO = Evento.Estado; eventoDALC.NOMBRE = Evento.Nombre; eventoDALC.IMAGEN = Evento.Imagen; eventoDALC.FECHA = Evento.Fecha; conexion.AddToEVENTO(eventoDALC); conexion.SaveChanges(); conexion.Dispose(); EventoBEL guardado = traerEventoPorNombreRut(Evento.Nombre, Evento.Rut); return(guardado.IdEvento); } catch { return(-1); } }
/// <summary> /// Trae un evento como objeto Evento /// </summary> /// <param name="idEvento">id del evento a filtrar</param> /// <returns></returns> public EventoBEL traerEventoId(int idEvento) { try { Entidades conexion = ConexionBLL.getConexion(); EVENTO EvenDalc = (from tmpEvento in conexion.EVENTO where tmpEvento.ID_EVENTO == idEvento select tmpEvento).FirstOrDefault(); if (EvenDalc != null) { EventoBEL evBEL = new EventoBEL(); evBEL.IdEvento = (int)EvenDalc.ID_EVENTO; evBEL.IdRecinto = (int)EvenDalc.ID_RECINTO; evBEL.IdTipoEvento = (int)EvenDalc.ID_TIPO_EVENTO; evBEL.Nombre = EvenDalc.NOMBRE; evBEL.Rut = (int)evBEL.Rut; evBEL.Estado = EvenDalc.ESTADO; evBEL.AsientosDisponibles = (int)EvenDalc.ASIENTOS_DISPONIBLES; evBEL.Imagen = EvenDalc.IMAGEN; evBEL.Fecha = EvenDalc.FECHA.Value; evBEL.Descripcion = EvenDalc.DESCRIPCION; return(evBEL); } return(null); } catch { return(null); } }
/// <summary> /// Trae el registro de Recinto como objeto Recinto /// </summary> /// <param name="id">id del recinto a Filtrar</param> /// <returns></returns> public RecintoBEL traerRecintoPorId(int id) { try { RECINTO recintoDalc = ConexionBLL.getConexion().RECINTO.FirstOrDefault(tmpRecinto => (tmpRecinto.ID_RECINTO.Equals(id))); if (recintoDalc != null) { RecintoBEL recintoBEL = new RecintoBEL(); recintoBEL.IdRecinto = (int)recintoDalc.ID_RECINTO; recintoBEL.NombreRecinto = recintoDalc.NOMBRE_RECINTO; recintoBEL.DireccionRecinto = recintoDalc.DIRECCION_RECINTO; recintoBEL.ImagenRecinto = recintoDalc.IMAGEN_RECINTO; recintoBEL.IdComuna = (int)recintoDalc.ID_COMUNA; recintoBEL.IdEstado = (int)recintoDalc.ESTADO; return(recintoBEL); } return(null); } catch { return(null); } }
/// <summary> /// Trae el registro de Organizador como objeto Organizador /// </summary> /// <param name="rut">rut del Organizador a Filtrar</param> /// <returns></returns> public OrganizadorBEL MostrarOrganizador(int rut) { try { ORGANIZADOR org_encontrado = (from tmporg in ConexionBLL.getConexion().ORGANIZADOR where tmporg.RUT == rut select tmporg).FirstOrDefault(); if (org_encontrado != null) { OrganizadorBEL orgBEL = new OrganizadorBEL(); orgBEL.Rut = (int)org_encontrado.RUT; orgBEL.Dv = Convert.ToChar(org_encontrado.DV); orgBEL.NombreRazonSocial = org_encontrado.NOMBRE_RAZON_SOCIAL; orgBEL.Direccion = org_encontrado.DIRECCION; orgBEL.Giro = org_encontrado.GIRO; orgBEL.Correo = org_encontrado.CORREO; orgBEL.IdEstado = (int)org_encontrado.ESTADO; orgBEL.IdComuna = (int)org_encontrado.ID_COMUNA; return(orgBEL); } return(null); } catch { return(null); } }
/// <summary> /// Actualiza un evento en la base de datos /// </summary> /// <param name="Evento">objeto Evento</param> /// <returns></returns> public void actualizarEvento(EventoBEL Evento) { try { Entidades conexion = ConexionBLL.getConexion(); EVENTO eventoDALC = (from tmpEvento in conexion.EVENTO where tmpEvento.ID_EVENTO == Evento.IdEvento select tmpEvento).FirstOrDefault(); eventoDALC.ID_EVENTO = Evento.IdEvento; eventoDALC.ASIENTOS_DISPONIBLES = Evento.AsientosDisponibles; eventoDALC.DESCRIPCION = Evento.Descripcion; eventoDALC.ID_TIPO_EVENTO = Evento.IdTipoEvento; eventoDALC.ID_RECINTO = Evento.IdRecinto; eventoDALC.RUT = Evento.Rut; eventoDALC.ESTADO = Evento.Estado; eventoDALC.NOMBRE = Evento.Nombre; eventoDALC.IMAGEN = Evento.Imagen; eventoDALC.FECHA = Evento.Fecha; conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Trae todos los registros de Eventos con estado valido V y que su fecha sea mayo o igual al dia de hoy como LIST /// </summary> /// <returns></returns> public List <EventoBEL> traerEventosCercanos() { try { List <EventoBEL> Eventos = (from tempEvento in ConexionBLL.getConexion().EVENTO where tempEvento.ESTADO.Equals("V") && tempEvento.FECHA.Value >= DateTime.Today orderby tempEvento.FECHA ascending select new EventoBEL() { IdEvento = (int)tempEvento.ID_EVENTO, AsientosDisponibles = (int)tempEvento.ASIENTOS_DISPONIBLES, Descripcion = tempEvento.DESCRIPCION, IdTipoEvento = (int)tempEvento.ID_TIPO_EVENTO, IdRecinto = (int)tempEvento.ID_RECINTO, Rut = (int)tempEvento.RUT, Estado = tempEvento.ESTADO, Nombre = tempEvento.NOMBRE, Fecha = tempEvento.FECHA.Value, Imagen = tempEvento.IMAGEN }).Take(10).ToList(); return(Eventos); } catch { return(null); } }
/// <summary> /// Buscador de registros de Cliente_Ticket por rut /// </summary> /// <param name="rut">rut de usuario para buscar registros asociados</param> /// <returns></returns> public ClienteTicketBEL traerTicketPorRut(int rut) { try { CLIENTE_TICKET clienteTicketDalc = ConexionBLL.getConexion().CLIENTE_TICKET.FirstOrDefault(tmpClienteTicket => (tmpClienteTicket.CLIENTE_RUT.Equals(rut))); if (clienteTicketDalc != null) { ClienteTicketBEL ClienteTicketBEL = new ClienteTicketBEL(); ClienteTicketBEL.ClienteRut = (int)clienteTicketDalc.CLIENTE_RUT; ClienteTicketBEL.IdTicket = (int)clienteTicketDalc.TICKET_ID_TICKET; ClienteTicketBEL.Cantidad = (int)clienteTicketDalc.CANTIDAD; ClienteTicketBEL.Total = (int)clienteTicketDalc.TOTAL; ClienteTicketBEL.Regalo = clienteTicketDalc.REGALO; ClienteTicketBEL.Correo = clienteTicketDalc.CORREO; ClienteTicketBEL.Habilitado = (int)clienteTicketDalc.HABILITADO; return(ClienteTicketBEL); } return(null); } catch { return(null); } }
/// <summary> /// Obtiene la cantidad total de entradas vendidas por eventos /// </summary> /// <param name="idevento", name="idevento">id del evento para la consulta</param> /// <returns></returns> public int totalEntradasVendidasPorEventos(int idevento) { try { int total = (from tmpvendidas in ConexionBLL.getConexion().TICKET where tmpvendidas.ID_EVENTO == idevento select tmpvendidas).Count(); return(total); } catch { return(0); } }
/// <summary> /// Trae todos los registros de Menu como LIST /// </summary> /// <param name="rutCli">id del tipo de perfil a filtrar</param> /// <returns></returns> public List <MenuBEL> traerMenuPorTipoPerfil(int idTipoPerfil) { List <MenuBEL> menues = (from tempMenu in ConexionBLL.getConexion().MENU where tempMenu.ID_TIPO_PERFIL == idTipoPerfil select new MenuBEL() { IdMenu = (int)tempMenu.ID_MENU, Campo = tempMenu.CAMPO, UrlInterna = tempMenu.URL_INTERNA, IdTipoPerfil = (int)tempMenu.ID_TIPO_PERFIL }).ToList(); return(menues); }
/// <summary> /// Obtiene la cantidad total de entradas por eventos /// </summary> /// <param name="idevento", name="idevento">id del evento para la consulta</param> /// <returns></returns> public int totalEntradasPorEventos(int idevento) { try { int total = (from tmpAsientos in ConexionBLL.getConexion().ASIENTO where tmpAsientos.ID_EVENTO == idevento select tmpAsientos).Count(); return(total); } catch { return(0); } }
/// <summary> /// Modifica un registro de Tipo de Evento /// </summary> /// <param name="tipoEvento">Objeto TipoEvento</param> public void editarTipoEvento(TipoEventoBEL tipoEvento) { try { Entidades conexion = ConexionBLL.getConexion(); TIPO_EVENTO tipoEventoDALC = (from tmpTipoEvento in conexion.TIPO_EVENTO where tmpTipoEvento.ID_TIPO_EVENTO == tipoEvento.IdTipoEvento select tmpTipoEvento).FirstOrDefault(); tipoEventoDALC.ID_TIPO_EVENTO = tipoEvento.IdTipoEvento; tipoEventoDALC.DESCRIPCION = tipoEvento.DescripcionTipoEvento; conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Elimina un evento en la base de datos /// </summary> /// <param name="Evento">objeto Evento</param> /// <returns></returns> public void eliminarEvento(int idEvento) { try { Entidades conexion = ConexionBLL.getConexion(); EVENTO eventoDALC = (from tmpEvento in conexion.EVENTO where tmpEvento.ID_EVENTO == idEvento select tmpEvento).FirstOrDefault(); conexion.DeleteObject(eventoDALC); conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Elimina un registro de Recinto /// </summary> /// <param name="recinto">Objeto Recinto</param> public void eliminarRecinto(int idRecinto) { try { Entidades conexion = ConexionBLL.getConexion(); RECINTO recintoDALC = (from tmpRec in conexion.RECINTO where tmpRec.ID_RECINTO == idRecinto select tmpRec).FirstOrDefault(); recintoDALC.ID_RECINTO = idRecinto; conexion.DeleteObject(recintoDALC); conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Elimina un registro de Organizador /// </summary> /// <param name="rut">rut del Organizador a eliminar</param> public void eliminarOrganizador(int rut) { try { Entidades conexion = ConexionBLL.getConexion(); ORGANIZADOR OrganizadorDALC = (from tmpOrganizador in conexion.ORGANIZADOR where tmpOrganizador.RUT == rut select tmpOrganizador).FirstOrDefault(); OrganizadorDALC.RUT = rut; conexion.DeleteObject(OrganizadorDALC); conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Funcion eliminar Cliente_Ticket /// Deshabilita cambiando estado de habilitado en BD /// 1 = Habilitado /// 0 = Deshabilitado /// </summary> /// <param name="id">id de Cliente_ticket</param> public void eliminarClienteTicket(int id) { try { Entidades conexion = ConexionBLL.getConexion(); CLIENTE_TICKET CliTickDALC = (from tmpCliTick in conexion.CLIENTE_TICKET where tmpCliTick.TICKET_ID_TICKET == id select tmpCliTick).FirstOrDefault(); CliTickDALC.TICKET_ID_TICKET = id; conexion.DeleteObject(CliTickDALC); conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Elimina un registro de Tipo de Evento /// </summary> /// <param name="id">id del tipo de evento</param> public void eliminarTipoEvento(int id) { try { Entidades conexion = ConexionBLL.getConexion(); TIPO_EVENTO tipoEventoDALC = (from tmpTipoEvento in conexion.TIPO_EVENTO where tmpTipoEvento.ID_TIPO_EVENTO == id select tmpTipoEvento).FirstOrDefault(); tipoEventoDALC.ID_TIPO_EVENTO = id; conexion.DeleteObject(tipoEventoDALC); conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Elimina un registro de Cliente /// </summary> /// <param name="rut">rut del cliente a eliminar</param> public void eliminarClientePorRut(int rut) { try { Entidades conexion = ConexionBLL.getConexion(); CLIENTE clienteDalc = (from tmpCliente in conexion.CLIENTE where tmpCliente.RUT == rut select tmpCliente).FirstOrDefault(); conexion.DeleteObject(clienteDalc); conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Obtiene la cantidad total de entradas por tipo de entrada /// </summary> /// <param name="idevento", name="idevento">id del tipo de entrada para la consulta</param> /// <returns></returns> public int totalEntradasPorTipoEntrada(int idTipoEntrada) { try { Entidades conexion = ConexionBLL.getConexion(); int total = (from tmpAsientos in conexion.ASIENTO where tmpAsientos.ID_TIPO_ASIENTO == idTipoEntrada select tmpAsientos).Count(); return(total); } catch { return(0); } }
/// <summary> /// Obtiene la cantidad total de entradas vendidas por tipo de Entrada /// </summary> /// <param name="idevento", name="idevento">id del tipo de entrada para la consulta</param> /// <returns></returns> public int totalEntradasVendidasPorTipoEntrada(int idTipoEntrada) { try { Entidades conexion = ConexionBLL.getConexion(); int total = (from tmpticket in conexion.TICKET join tmpasientos in conexion.ASIENTO on tmpticket.ID_ASIENTO equals tmpasientos.ID_ASIENTO where tmpasientos.ID_TIPO_ASIENTO == idTipoEntrada select tmpasientos).Count(); return(total); } catch { return(0); } }
/// <summary> /// Elimina un registro de Tipo de Ticket /// </summary> /// <param name="tipo">Objeto TipoTicket</param> public void eliminarTiposTicket(int idTipoTicket) { try { Entidades conexion = ConexionBLL.getConexion(); TIPO_TICKET dalcTipo = (from tmpTiposTicket in conexion.TIPO_TICKET where tmpTiposTicket.ID_TIPO_TICKET == idTipoTicket select tmpTiposTicket).FirstOrDefault(); conexion.DeleteObject(dalcTipo); conexion.SaveChanges(); } catch { return; } }
/// <summary> /// Agrega un nuevo registro de Tipo de Evento /// </summary> /// <param name="tipoEvento">Objeto TipoEvento</param> public void agregarTipoEvento(TipoEventoBEL tipoEvento) { try { Entidades conexion = ConexionBLL.getConexion(); TIPO_EVENTO tipoEventoDALC = new TIPO_EVENTO(); tipoEventoDALC.DESCRIPCION = tipoEvento.DescripcionTipoEvento; //tipoEventoDALC.ID_TIPO_EVENTO = tipoEvento.IdTipoEvento; conexion.AddToTIPO_EVENTO(tipoEventoDALC); conexion.SaveChanges(); conexion.Dispose(); } catch { return; } }
/// <summary> /// Trae todos los registros de Tipos de Eventos como LIST /// </summary> /// <returns></returns> public List <TipoEventoBEL> listaDeTiposEventos() { try { List <TipoEventoBEL> lista = (from tmpTiposEvento in ConexionBLL.getConexion().TIPO_EVENTO select new TipoEventoBEL() { IdTipoEvento = (int)tmpTiposEvento.ID_TIPO_EVENTO, DescripcionTipoEvento = tmpTiposEvento.DESCRIPCION }).ToList(); return(lista); } catch { return(null); } }
/*catch * { * return null; * }*/ //} /*WebService.WebServicePruebaSoapClient servicio = new WebService.WebServicePruebaSoapClient(); * DataSet custDS = new DataSet(); * custDS = servicio.getEncontrar(codigo); * if (custDS.Tables["DATOS"].Rows.Count > 0) * { * //foreach (DataSet registro in custDS.Tables) * iRecinto recinto = new iRecinto(); * recinto.Codigo = custDS.Tables["DATOS"].Rows[0]["idRecinto"].ToString(); * //recinto.FotoRecinto = custDS.Tables["DATOS"].Rows[0]["fotoMapa"].ToString(); * recinto.FotoMapa = custDS.Tables["DATOS"].Rows[0]["fotoRecinto"].ToString(); * * return recinto; * } * else * return null;*/ public PerfilBEL buscarUsuario(String usuario_login, String pass_login) { String pass_encryp = _encriptar(pass_login); PERFIL perfil_encontrado = ConexionBLL.getConexion().PERFIL.FirstOrDefault(tempPerfil => (tempPerfil.USUARIO.Equals(usuario_login) && tempPerfil.CONTRASENA.Equals(pass_encryp))); if (perfil_encontrado != null) { PerfilBEL usuario_enc = new PerfilBEL(); usuario_enc.IdPerfil = Convert.ToInt32(perfil_encontrado.ID_PERFIL); usuario_enc.Usuario = perfil_encontrado.USUARIO; usuario_enc.Contrasena = perfil_encontrado.CONTRASENA; usuario_enc.IdTipoPerfil = Convert.ToInt32(perfil_encontrado.ID_TIPO_PERFIL); return(usuario_enc); } return(null); }
/// <summary> /// Trae todos los registros de Tipos de Asientos como LIST /// </summary> /// <returns></returns> public List <TipoAsientoBEL> traerTiposAsientos() { try { List <TipoAsientoBEL> listaTipoAsientos = (from tmpTipoAsiento in ConexionBLL.getConexion().TIPO_ASIENTO select new TipoAsientoBEL() { IdTipoAsiento = (int)tmpTipoAsiento.ID_TIPO_ASIENTO, Nombre = tmpTipoAsiento.NOMBRE }).ToList(); return(listaTipoAsientos); } catch { return(null); } }
/// <summary> /// Trae todos los registros de Intereses como LIST /// </summary> /// <returns></returns> public List <InteresBEL> traerIntereses() { try { List <InteresBEL> intereses = (from tempint in ConexionBLL.getConexion().INTERES select new InteresBEL() { IdInteres = (int)tempint.ID_INTERES, Descripcion = tempint.DESCRIPCION }).ToList(); return(intereses); } catch { return(null); } }