public List <StudentDAO> GetStudents()
        {
            var data = new List <StudentDAO>();

            foreach (var student in GetData.GetStudents())
            {
                data.Add(StudentMapper.MapToStudentDAO(student));
            }
            return(data);
        }
        public List <StudentDAO> getCourseRoster(int courseid)
        {
            var data = new List <StudentDAO>();

            foreach (var student in registrar.StudentsEnrolledInCourse(courseid))
            {
                data.Add(StudentMapper.MapToStudentDAO(student));
            }
            return(data);
        }
Exemple #3
0
        public List <StudentDAO> GetStudents()
        {
            var s = new List <StudentDAO>();

            foreach (var students in ef.GetStudents())
            {
                s.Add(StudentMapper.MapToStudentDAO(students));
            }

            return(s);
        }
 public StudentDAO GetStudentByID(int id)
 {
     return(StudentMapper.MapToStudentDAO(GetData.GetStudentByID(id)));
 }