public async Task <StockSummaryResult> Handle(StockSummaryRequest request, CancellationToken cancellationToken) { var response = await(string.IsNullOrEmpty(request.Region) ? _stockApi.GetStockSummaryAsync(request.Symbol) : _stockApi.GetStockSummaryAsync(request.Symbol, request.Region)); var mapped = _mapper.Map <StockSummaryResult>(response.Content); Console.WriteLine(mapped); return(mapped); }