public async Task <GetStatesResponse> Handle(GetStatesRequest request, CancellationToken cancellationToken) { var errorMessage = string.Empty; try { var response = await _infoServiceWrapper.GetStates(request.ListName); } catch (Exception ex) { errorMessage = ex.Message; } return(await Task.FromResult(new GetStatesResponse { Success = string.IsNullOrEmpty(errorMessage) ? true : false, ErrorMessage = errorMessage })); }