private void AddFavorite() { string city = SelectedItem.name; var service = new ProcessoSeletivoService(); service.SetCredentials(); GetWeather(service, city); }
private async void GetWeather(ProcessoSeletivoService service, string city) => WeatherData = await service.GetWeatherForCityAsync(city);