public async Task <List <StateItem> > GetStatesAsync()
        {
            var result = await _http.GetStatesAsync();

            if (result != null)
            {
                return(result.States);
            }
            else
            {
                return(new List <StateItem>());
            }
        }
        public async Task <StatesListResponse> GetStatesAsync()
        {
            string key = _cowinStatesListKey;

            StatesListResponse data;

            if (!_cache.TryGetValue(key, out data))
            {
                var response = await _http.GetStatesAsync();

                if (response != null)
                {
                    _cache.Set(key, response, new MemoryCacheEntryOptions
                    {
                        AbsoluteExpirationRelativeToNow = TimeSpan.FromHours(response.Ttl == 0 ? 24 : response.Ttl)
                    });

                    data = response;
                }
            }

            return(data);
        }