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