Beispiel #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;
 }
        //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;
            }
        }