Exemplo n.º 1
0
        private async Task GetEuroPrice()
        {
            var euroRate = await _euroApi.GetEuroPrice();

            _euroValue = euroRate.Eur.Sell;

            CurrentRateEur   = CurrentRate * _euroValue;
            CurrentProfitEur = CurrentProfit * _euroValue;
        }
Exemplo n.º 2
0
        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)
            {
            }
        }