public static PeriodoCollectionDC PeriodoCollectionBEConvertirPeriodoCollectionDC(List<PeriodoEntity> listPeriodoBE) { PeriodoCollectionDC oPeriodoCollectionDC = new PeriodoCollectionDC(); PeriodoDC oPeriodoDC; for (int i = 0; i < listPeriodoBE.Count; i++) { oPeriodoDC = PeriodoBEConvertirPeriodoDC(listPeriodoBE[i]); oPeriodoCollectionDC.Add(oPeriodoDC); } return oPeriodoCollectionDC; }
public static PeriodoCollectionDC TranslateListarPeriodosLRToPeriodoCollectionDC(List<up_Listar_PeriodosResult> lstLR) { PeriodoCollectionDC collection; try { collection = new PeriodoCollectionDC(); for (int i = 0; i < lstLR.Count; i++) collection.Add(TranslateListarPeriodosLRToPeriodoDC(lstLR[i])); return collection; } catch (Exception ex) { throw ex; } }
public static PeriodoCollectionDC TranslatePeriodoLRToPeriodoCollection(List<uspPeriodo_ListarXEstadoXEsActualResult> lstLR) { PeriodoCollectionDC collection; try { collection = new PeriodoCollectionDC(); //collection.lstPeriodo = new Collection<PeriodoDC>(); for (int i = 0; i < lstLR.Count; i++) { collection.Add(TranslatePeriodoLRToPeriodoDC(lstLR[i])); } return collection; } catch (Exception ex) { throw ex; } finally { } }