public async Task GetRootObjectList(List<RootObject> list)
 {
     var rootObjectList = await RootObjects.OrderByDescending(x => x.AccessTime).ToListAsync();
     if (rootObjectList.Any())
     {
         list.AddRange(rootObjectList);
     }
 }
        // GET: /WeatherForecast/Index
        public async Task<ActionResult> Index()
        {
            var favoriteCitiesList = new List<City>();
            using (context = new FavoriteCityContext())
            {
                foreach (var item in await context.Cities.ToListAsync())
                {
                    if (!favoriteCitiesList.Any(x => x.Name.Equals(item.Name)))
                        favoriteCitiesList.Add(new City() {Name = item.Name});
                }
            }

            return View(favoriteCitiesList);
        }
 // GET: /WeatherForecast/ForecastHistory
 public async Task<ActionResult> ForecastHistory()
 {
     var temp = new List<RootObject>();
     using (context = new FavoriteCityContext())
     {
         await context.GetRootObjectList(temp);
     }
     return View(temp);
 }