示例#1
0
        public override async Task <GetWithdrawalsResponse> ExecuteAsync(GetWithdrawalsRequest request, CancellationToken cancellationToken)
        {
            Request = request;
            var result = await _service.GetWithdrawalsAsync(request, cancellationToken);

            Response = _mapper.Map <GetWithdrawalsResponse>(result);

            return(Response);
        }
示例#2
0
        public override async Task <ExportResponse> ExecuteAsync(ExportRequest request, CancellationToken cancellationToken)
        {
            var withdrawals = await _service.GetWithdrawalsAsync(new PagedDataFilter(), cancellationToken);

            var xslt = await GetXsltAsync();

            return(new ExportResponse {
                Content = withdrawals.Items.ToXml(xslt)
            });
        }