public async Task <Unit> Handle(GetAndAddEmployerVendorIdCommand request, CancellationToken cancellationToken) { _logger.LogInformation("Requesting VendorId for LegalEntityId: [{LegalEntityId}]", request.HashedLegalEntityId); var employerVendorId = await GetEmployerVendorId(request.HashedLegalEntityId); if (!string.IsNullOrEmpty(employerVendorId)) { _logger.LogInformation("Received VendorId '{VendorId}' for LegalEntityId [{LegalEntityId}]", employerVendorId, request.HashedLegalEntityId); await _incentivesService.AddEmployerVendorIdToLegalEntity(request.HashedLegalEntityId, employerVendorId); } return(Unit.Value); }