Beispiel #1
0
        public async Task <GetCountriesByListResponse> Handle(GetCountriesByListRequest request, CancellationToken cancellationToken)
        {
            var errorMessage = string.Empty;

            try
            {
                var response = await _infoServiceWrapper.GetCountries1(request.ListName);
            }
            catch (Exception ex)
            {
                errorMessage = ex.Message;
            }
            return(await Task.FromResult(new GetCountriesByListResponse
            {
                Success = string.IsNullOrEmpty(errorMessage) ? true : false,
                ErrorMessage = errorMessage
            }));
        }