/// <summary> /// List the bookmarked courses for a Student. /// </summary> /// <param name="studentId">The Student to List Courses for.</param> /// <returns>The List of bookmarked Courses.</returns> public List <StudentScheduleDAO> ListStudentBookmarks(int studentId) { StudentDAO studentDAO = Mapper.MapToStudentDAO(data.FindOrCreateStudent(studentId)); List <StudentScheduleDAO> studentScheduleDAOs = new List <StudentScheduleDAO>(); foreach (StudentSchedule studentSchedule in data.ListStudentBookmarks(Mapper.MapToStudent(studentDAO))) { studentScheduleDAOs.Add(Mapper.MapToStudentScheduleDAO(studentSchedule)); } return(studentScheduleDAOs); }