From d5e32a487b7a8b85651aad1abd36fa035c79e417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Wed, 16 Sep 2020 17:23:33 +0200 Subject: [PATCH] Added delete method in GroupService MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .../src/main/java/com/plannaplan/services/GroupService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buisnesslogic/src/main/java/com/plannaplan/services/GroupService.java b/buisnesslogic/src/main/java/com/plannaplan/services/GroupService.java index e899dd8..3142411 100644 --- a/buisnesslogic/src/main/java/com/plannaplan/services/GroupService.java +++ b/buisnesslogic/src/main/java/com/plannaplan/services/GroupService.java @@ -28,6 +28,10 @@ public class GroupService { this.repo.save(group); } + public void delete(Groups groups){ + this.repo.delete(groups); + } + public int getGroupsAmmount(){ return (int)this.repo.count(); }