@Override public Set<Group> getAllGroups() { List<Group> allGroups = groupRepository.findAllGroups(); Set<Group> setList = new HashSet<>(allGroups); return setList; }
@Override public Group getGroupById(long id) { return groupRepository.findGroupById(id); }