class ProjectPartnerInviteServiceImpl extends BaseTransactionalService implements ProjectPartnerInviteService {

    @Override
    @Transactional
    public ServiceResult<Void> deleteInvite(long inviteId) {
        return find(projectPartnerInviteRepository.findById(inviteId), notFoundError(ProjectPartnerInvite.class, inviteId))
                .andOnSuccessReturnVoid(projectPartnerInviteRepository::delete);
    }

}