private async Task UpdateRate() { var newRate = await currencyService.GetRate(exchangeRate.SourceCurrency, exchangeRate.TargetCurrency); exchangeRate.LastRate = newRate; exchangeRateRepository.AddOrUpdateSingle(exchangeRate); await RaisePropertyChanged(() => Rate); }