Dodanie usuniecie kursu.
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
43660c4fe9
commit
283be6603d
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user