Added delete method into LecturerService

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-09-16 17:35:39 +02:00
parent a717a85a80
commit 1cff3ceb74

View File

@ -19,6 +19,10 @@ public class LecturerService {
repo.save(lecturer);
}
public void delete(Lecturer lecturer) {
repo.delete(lecturer);
}
public int getLecturersAmmount(){
return (int)this.repo.count();
}