コード例 #1
0
        private async Task UpdateRate()
        {
            var newRate = await currencyService.GetRate(exchangeRate.SourceCurrency, exchangeRate.TargetCurrency);

            exchangeRate.LastRate = newRate;
            exchangeRateRepository.AddOrUpdateSingle(exchangeRate);
            await RaisePropertyChanged(() => Rate);
        }