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); }
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) }); }