예제 #1
0
 public List<Course> requestAllCourses() {
   List<Course> coursesList = new ArrayList<Course>();
   for (Course course : courseRepository.findAll()) {
     coursesList.add(course);
   }
   return coursesList;
 }
예제 #2
0
 public Course getCourseBySequence(Integer courseSequence) {
   Course course = courseRepository.findBySequence(courseSequence);
   return course;
 }