private async Task GetEuroPrice() { var euroRate = await _euroApi.GetEuroPrice(); _euroValue = euroRate.Eur.Sell; CurrentRateEur = CurrentRate * _euroValue; CurrentProfitEur = CurrentProfit * _euroValue; }
private async Task GetEuroPrice() { try { var euroRate = await _euroApi.GetEuroPrice(); _euroValue = euroRate.Eur.Sell; TotalProfitEur = TotalProfit * _euroValue; TodaysProfitEur = TodaysProfit * _euroValue; OverallBalanceEur = OverallBalance * _euroValue; } catch (Exception x) { } }