public async Task <GetLocalitiesByPostCodeResponse> Handle(GetLocalitiesByPostCodeRequest request, CancellationToken cancellationToken) { var errorMessage = string.Empty; try { var response = await _infoServiceWrapper.GetLocalitiesByPostCode(request.AccountId, request.Country, request.PostCode); } catch (Exception ex) { errorMessage = ex.Message; } return(await Task.FromResult(new GetLocalitiesByPostCodeResponse { Success = string.IsNullOrEmpty(errorMessage) ? true : false, ErrorMessage = errorMessage })); }