public List<vDOC_PLANTILLA> GetsHechos(string NUM_PROC, decimal ID_PLA) { mDocumentos o = new mDocumentos(); List<vDOC_PLANTILLA> lPlantillas = o.Gets(NUM_PROC, ID_PLA); foreach (vDOC_PLANTILLA item in lPlantillas) { item.lSecciones = new List<vDOC_SECCIONES>(); } return lPlantillas; }
public List<vDOC_PLANTILLA> GetsFiltro(string NUM_PROC, string FILTRO) { mDocumentos o = new mDocumentos(); List<vDOC_PLANTILLA> lPlantillas = o.Gets(NUM_PROC); foreach (vDOC_PLANTILLA item in lPlantillas) { item.lSecciones = new List<vDOC_SECCIONES>(); } return lPlantillas.Where(t => t.TITULO.ToUpper().Contains(FILTRO.ToUpper())).ToList(); }