Esempio n. 1
0
        public static List <UniPlanDTO> GetAll()
        {
            List <UniPlanDTO> rtn = new List <UniPlanDTO>();
            List <uniPlanes>  uniPlanesModelList = UniPlanDAL.GetAll();

            foreach (uniPlanes uniPlanesModel in uniPlanesModelList)
            {
                UniPlanDTO uniPlan = new UniPlanDTO(uniPlanesModel);
                uniPlan.MateriaList = GetPlanByCodigoCarrera(uniPlanesModel.codcar);
                rtn.Add(uniPlan);
            }
            return(rtn);
        }
Esempio n. 2
0
        public static List <UniPlanMateriaDTO> GetPlanByCodigoCarrera(string codcar)
        {
            List <UniPlanMateriaDTO> rtn = new List <UniPlanMateriaDTO>();
            List <sp_get_PlanesMateriasDetalladasByCodigoPlan_Result> uniPlanesByCodigoPlanList = UniPlanDAL.GetPlanByCodigoCarrera(codcar);

            foreach (sp_get_PlanesMateriasDetalladasByCodigoPlan_Result uniPlanesByCodigoPlan in uniPlanesByCodigoPlanList)
            {
                rtn.Add(new UniPlanMateriaDTO(uniPlanesByCodigoPlan));
            }
            return(rtn);
        }