Added delete method in GroupService

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-09-16 17:23:33 +02:00
parent 551011db1c
commit d5e32a487b

View File

@ -28,6 +28,10 @@ public class GroupService {
this.repo.save(group); this.repo.save(group);
} }
public void delete(Groups groups){
this.repo.delete(groups);
}
public int getGroupsAmmount(){ public int getGroupsAmmount(){
return (int)this.repo.count(); return (int)this.repo.count();
} }