public async Task UpdateRatesAsync() { var rates = await CbrParser.GetRates(); Dollar.RateInRubles = rates["Доллар США"]; Euro.RateInRubles = rates["Евро"]; }
public ICurrencyCourse?GetCourse(LocalDate courseDate, string currencyCode) { XDocument courses = _cbrService.GetCursOnDateXml(courseDate); return(CbrParser.GetCourse(courses, currencyCode)); }