public async Task <GetLegalEntityResult> Handle(GetLegalEntityQuery request, CancellationToken cancellationToken)
        {
            var response = await _legalEntitiesService.GetLegalEntity(request.AccountId, request.AccountLegalEntityId);

            return(new GetLegalEntityResult
            {
                AccountLegalEntity = response
            });
        }
示例#2
0
        public async Task <Unit> Handle(UpdateVendorRegistrationCaseStatusCommand request, CancellationToken cancellationToken)
        {
            var legalEntity = await _legalEntitiesService.GetLegalEntity(request.AccountId, request.AccountLegalEntityId);

            var updateRequest = new UpdateVendorRegistrationCaseStatusRequest
            {
                HashedLegalEntityId = legalEntity.HashedLegalEntityId,
                Status = request.VrfCaseStatus,
                CaseStatusLastUpdatedDate = DateTime.Now
            };
            await _vendorRegistrationService.UpdateVendorRegistrationCaseStatus(updateRequest);

            return(await Task.FromResult(Unit.Value));
        }