public async Task <IActionResult> Index()
        {
            var weather = new weather();

            weather.currentTime = weather.FormateDate(DateTimeOffset.UtcNow.TimeOfDay);
            await GetWeatherAsync(weather);

            weather.city = city.City;
            return(View(weather));
        }
        public IActionResult ChangeCity(string input)
        {
            var weather         = new weather();
            var locationService = new GoogleLocationService("GOOGLEKEY");

            try
            {
                var point = locationService.GetLatLongFromAddress(input);
                city.Lon  = point.Latitude.ToString();
                city.Lat  = point.Longitude.ToString();
                city.City = input + "(" + city.Lon + " , " + city.Lat + ")";;
            }
            catch (Exception e)
            {
                weather.currentTime = weather.FormateDate(DateTimeOffset.UtcNow.TimeOfDay);
                city.setDefault();
            }
            return(RedirectToAction("Index", "Home"));
        }