Dodanie usuniecie kursu.
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
@ -25,6 +25,10 @@ public class CourseService {
|
||||
this.repo.save(course);
|
||||
}
|
||||
|
||||
public void remove(Course course){
|
||||
this.repo.delete(course);
|
||||
}
|
||||
|
||||
public int getCoursesAmmount(){
|
||||
return (int)this.repo.count();
|
||||
}
|
||||
|
Reference in New Issue
Block a user