class InviteOrganisationServiceImpl extends BaseTransactionalService implements InviteOrganisationService {

    @Override
    public ServiceResult<InviteOrganisationResource> getById(long id) {
        return find(inviteOrganisationRepository.findById(id), notFoundError(InviteOrganisation.class, id))
                .andOnSuccessReturn(mapper::mapToResource);
    }

}