public async Task <Success> Handle(ConfirmationCommand request, CancellationToken cancellationToken) { if (!_flow.State.GotProviderDetails) { throw new InvalidStateException(); } await _cosmosDbQueryDispatcher.ExecuteQuery( new UpdateProviderInfo() { ProviderId = request.ProviderId, MarketingInformation = _flow.State.ProviderMarketingInformation, UpdatedBy = _currentUserProvider.GetCurrentUser(), UpdatedOn = _clock.UtcNow }); return(new Success()); }
Guid IRequireUserCanSubmitQASubmission <ConfirmationCommand> .GetProviderId(ConfirmationCommand request) => request.ProviderId;