class InviteOrganisationServiceImpl extends BaseTransactionalService implements InviteOrganisationService {

    @Override
    public ServiceResult<InviteOrganisationResource> getByOrganisationIdWithInvitesForApplication(long organisationId, long applicationId) {
        return find(inviteOrganisationRepository.findOneByOrganisationIdAndInvitesApplicationId(organisationId, applicationId),
                notFoundError(InviteOrganisation.class, asList(organisationId, applicationId))).andOnSuccessReturn(mapper::mapToResource);
    }

}