public async Task <Unit> Handle(UpdateContactWithOrgAndStausRequest updateContactStatusRequest, CancellationToken cancellationToken) { var contact = await _contactRepository.UpdateContactWithOrganisationData(updateContactStatusRequest); if (contact .EndPointAssessorOrganisationId != null && !(await _organisationQueryRepository.CheckIfOrganisationHasContacts(contact .EndPointAssessorOrganisationId))) { await SetOrganisationStatusToApplyAndSetPrimaryContact(contact .EndPointAssessorOrganisationId, contact); } return(Unit.Value); }