Exemplo n.º 1
0
 public static PeriodoCollectionDC fromPeriodoListtoPeriodoCollection(List<PeriodoBE> lstBE)
 {
     PeriodoCollectionDC collection = new PeriodoCollectionDC();
     collection.lstPeriodo = new Collection<PeriodoDC>();
     for (int i = 0; i < lstBE.Count; i++)
         collection.lstPeriodo.Add(fromPeriodoBEtoPeriodoDC(lstBE[i]));
     return collection;
 }
Exemplo n.º 2
0
        //PERIODO
        public static PeriodoCollectionDC TranslateListarPeriodosLRToPeriodoCollectionDC(List<up_Listar_PeriodosResult> lstLR)
        {
            PeriodoCollectionDC collection;

            try
            {
                collection = new PeriodoCollectionDC();
                collection.LstPeriodos = new Collection<PeriodoDC>();

                for (int i = 0; i < lstLR.Count; i++)
                {
                    collection.LstPeriodos.Add(TranslateListarPeriodosLRToPeriodoDC(lstLR[i]));
                }

                return collection;
            }

            catch (Exception ex)
            {
                throw ex;
            }
        }