public async Task <SearchAddressResponse> Handle(SearchAddressRequest request, CancellationToken cancellationToken) { var errorMessage = string.Empty; var response = new List <QASAddress>(); try { response = await _infoServiceWrapper.SearchAddress(request.SearchText, request.Moniker, request.DisplayTextArray); } catch (Exception ex) { errorMessage = ex.Message; } return(await Task.FromResult(new SearchAddressResponse { IsServiceCallSuccess = string.IsNullOrEmpty(errorMessage) ? true : false, ErrorMessage = errorMessage, AddressList = response })); }