Dodanie usuniecie kursu.

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-09-16 17:15:56 +02:00
parent 43660c4fe9
commit 283be6603d

View File

@ -25,6 +25,10 @@ public class CourseService {
this.repo.save(course); this.repo.save(course);
} }
public void remove(Course course){
this.repo.delete(course);
}
public int getCoursesAmmount(){ public int getCoursesAmmount(){
return (int)this.repo.count(); return (int)this.repo.count();
} }