Added delete method into LecturerService
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
parent
a717a85a80
commit
1cff3ceb74
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user