Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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
            { }
        }