Exemplo n.º 1
0
        async Task CheckWeather(WeatherViewModel vm)
        {
            vm.TemperatureUnit = measurements.TemperatureUnits.First(t => t.Id == vm.TemperatureUnit.Id);
            vm.WindSpeedUnit   = measurements.WindSpeedUnits.First(t => t.Id == vm.WindSpeedUnit.Id);
            vm.Responses       = await weatherChecker.CheckAsync(vm.NewLocation);

            await vm.RefreshValuesAsync();
        }