public async Task <List <OwnerInfo> > GetRegistrations()
        {
            try {
                var registrations = await _restApiService.GetRequestAsync <List <OwnerInfo> >(_settings.JsonSourceUrl);

                return(registrations?.Any() ?? false ? registrations : new List <OwnerInfo>());
            }
            catch (Exception ex) {
                _logger.LogError("Failed to get registrations from data source", ex);
                return(new List <OwnerInfo>());
            }
        }
        public async Task <ProductResponse> GetProducts(string endpoint)
        {
            try {
                _logger.LogInformation($"Fetching products from the endpoint: {endpoint}");
                var url      = $"{_settings.ApiUrl}{endpoint}";
                var products = await _restApiService.GetRequestAsync <ProductResponse>(url);

                return(products);
            }
            catch (Exception ex) {
                _logger.LogError("Failed to get product from api endpoint", ex);
                return(new ProductResponse());
            }
        }