public List<VISTA_PRESTACIONES_POR_FACTURAR> GetAllWithReferences() { Init(); try { using (LQCEEntities context = new LQCEEntities()) { RepositorioVISTA_PRESTACIONES_POR_FACTURAR repositorio = new RepositorioVISTA_PRESTACIONES_POR_FACTURAR(context); return repositorio.GetAllWithReferences().OrderBy(i => i.NOMBRE).ToList(); } } catch (Exception ex) { ISException.RegisterExcepcion(ex); Error = ex.Message; throw ex; } }
public List<VISTA_PRESTACIONES_POR_FACTURAR> GetByFilter(int? ID_CLIENTE = null, string RUT = "", string NOMBRE = "", int? DESCUENTO = null, System.DateTime? FECHA_RECEPCION = null, int? TOTAL = null) { Init(); try { using (LQCEEntities context = new LQCEEntities()) { RepositorioVISTA_PRESTACIONES_POR_FACTURAR repositorio = new RepositorioVISTA_PRESTACIONES_POR_FACTURAR(context); return repositorio.GetByFilter(ID_CLIENTE, RUT, NOMBRE, DESCUENTO, FECHA_RECEPCION, TOTAL).OrderBy(i => i.ID).ToList(); } } catch (Exception ex) { ISException.RegisterExcepcion(ex); Error = ex.Message; throw ex; } }
public VISTA_PRESTACIONES_POR_FACTURAR GetByIdWithReferences(int ID) { Init(); try { using (LQCEEntities context = new LQCEEntities()) { RepositorioVISTA_PRESTACIONES_POR_FACTURAR repositorio = new RepositorioVISTA_PRESTACIONES_POR_FACTURAR(context); return repositorio.GetByIdWithReferences(ID); } } catch (Exception ex) { ISException.RegisterExcepcion(ex); Error = ex.Message; throw ex; } }