public void refreshWeatherData(string cityIdentifier) { string jsonData = getWeatherData(cityIdentifier); WeatherData retVal = new WeatherData(); retVal = JsonConvert.DeserializeObject <WeatherData>(jsonData); Weather = new ViewData(); Weather.AdaptAPI(retVal); SelectedDay = Weather.DayForecasts[IndexSelectedDay]; }