Exemplo n.º 1
0
        public async Task UpdateRatesAsync()
        {
            var rates = await CbrParser.GetRates();

            Dollar.RateInRubles = rates["Доллар США"];
            Euro.RateInRubles   = rates["Евро"];
        }
Exemplo n.º 2
0
        public ICurrencyCourse?GetCourse(LocalDate courseDate, string currencyCode)
        {
            XDocument courses = _cbrService.GetCursOnDateXml(courseDate);

            return(CbrParser.GetCourse(courses, currencyCode));
        }