Added method getEnrolledStudentsById to CourseResource.