Esempio n. 1
0
        public List <CourseDAO> getStudentSchedule(int studentid)
        {
            var data = new List <CourseDAO>();

            foreach (var course in registrar.GetStudentSchedule(studentid))
            {
                data.Add(CourseMapper.MapToCourseDAO(course));
            }
            return(data);
        }
Esempio n. 2
0
        public List <CourseDAO> GetCourses()
        {
            var data = new List <CourseDAO>();

            foreach (var course in GetData.GetCourses())
            {
                data.Add(CourseMapper.MapToCourseDAO(course));
            }
            return(data);
        }
Esempio n. 3
0
        public List <CourseDAO> GetCourses()
        {
            var c = new List <CourseDAO>();

            foreach (var courses in ef.GetCourses())
            {
                c.Add(CourseMapper.MapToCourseDAO(courses));
            }

            return(c);
        }