public static CarreraCollectionDC fromCarreraListtoCarreraCollection(List<CarreraBE> lstBE) { CarreraCollectionDC collection = new CarreraCollectionDC(); collection.lstCarrera = new Collection<CarreraDC>(); for(int i=0;i<lstBE.Count;i++) collection.lstCarrera.Add(fromCarreraBEtoCarreraDC(lstBE[i])); return collection; }
public static CarreraCollectionDC CarreraCollectionBEConvertirCarreraCollectionDC(List<CarreraEntity> listCarreraBE) { CarreraCollectionDC oCarreraCollectionDC = new CarreraCollectionDC(); CarreraDC oCarreraDC; for (int i = 0; i < listCarreraBE.Count; i++) { oCarreraDC = CarreraBEConvertirCarreraDC(listCarreraBE[i]); oCarreraCollectionDC.Add(oCarreraDC); } return oCarreraCollectionDC; }
public static CarreraCollectionDC TranslateCarreraXEscuelaLRToCarreraCollection(List<uspCarrera_ListarXEscuelaResult> lstLR) { CarreraCollectionDC collection; try { collection = new CarreraCollectionDC(); //collection.lstCarrera = new Collection<CarreraDC>(); for (int i = 0; i < lstLR.Count; i++) { collection.Add(TranslateCarreraXEscuelaLRToCarreraDC(lstLR[i])); } return collection; } catch (Exception ex) { throw ex; } finally { } }