private void GetWeather(object parameter) { if (parameter == null) { return; } City selectedCity = parameter as City; forecastService.GetWeather(selectedCity._id); }