//Additional code to cater for ON-2047 private async Task CheckAndSetPrivileges(Contact existingContact) { if (existingContact.EndPointAssessorOrganisationId != null) { var orgHasContacts = await _organisationQueryRepository.CheckIfOrganisationHasContactsWithSigninId(existingContact .EndPointAssessorOrganisationId, existingContact.Id); if (!orgHasContacts) { await _registerRepository.AssociateDefaultPrivilegesWithContact(new EpaContact { Id = existingContact.Id }); } } }