public List<FACTURA_DETALLE> GetAll() { Init(); try { using (LQCEEntities context = new LQCEEntities()) { RepositorioFACTURA_DETALLE repositorio = new RepositorioFACTURA_DETALLE(context); return repositorio.GetAll().OrderBy(i => i.ID).ToList(); } } catch (Exception ex) { ISException.RegisterExcepcion(ex); Error = ex.Message; throw ex; } }