/// <summary>
        /// This gets all the countries, if the flag is set to false it removes the ones which are verified
        /// </summary>
        /// <param name="all"></param>
        /// <param name="client"></param>
        /// <returns></returns>
        public static List <BorderStorageClass> GetCountries(bool all, HistoryMapWebClient client)
        {
            var        result          = client.GetBorders().GetAwaiter().GetResult();
            List <int> indexesToRemove = new List <int>();

            if (!all)
            {
                foreach (var button in result)
                {
                    if (button.Verified)
                    {
                        indexesToRemove.Add(result.IndexOf(button));
                    }
                }
                int i = 0;
                foreach (var index in indexesToRemove)
                {
                    result.RemoveAt(index - i);
                    i++;
                }
            }


            return(result);
        }
        /// <summary>
        /// This gets all the countries borders which are valid till that specified time period
        /// </summary>
        /// <param name="currentTime"></param>
        /// <returns></returns>
        public static List <BorderStorageClass> GetCountries(LocalDate currentTime)
        {
            if (_client == null)
            {
                _client = new HistoryMapWebClient("defaultUser", "ry3kGKijkF12Abwxczm1");
            }
            var result = _client.GetBorders(currentTime).GetAwaiter().GetResult();
            var list   = new List <BorderStorageClass>();

            foreach (var item in result)
            {
                if (item.Verified)
                {
                    list.Add(item);
                }
            }
            return(list);
        }