private async Task CreateVacancy(CreateVacancyCommand request, TrainingProvider trainingProvider)
 {
     if (!string.IsNullOrEmpty(request.VacancyUserDetails.Email))
     {
         request.VacancyUserDetails.Ukprn = null;
         await _employerVacancyClient.CreateEmployerApiVacancy(request.Vacancy.Id, request.Vacancy.Title,
                                                               request.Vacancy.EmployerAccountId,
                                                               request.VacancyUserDetails, trainingProvider, request.Vacancy.ProgrammeId);
     }
     else
     {
         await _providerVacancyClient.CreateProviderApiVacancy(request.Vacancy.Id, request.Vacancy.Title,
                                                               request.Vacancy.EmployerAccountId,
                                                               request.VacancyUserDetails);
     }
 }