示例#1
0
        public void PopulateCurrencies()
        {
            var currencies = _currencyRateService.GetCurrencyList();

            ViewData["Currencies"] = new SelectList(currencies.OrderBy(x => x.Name), "Id", "Name");
            ViewData["Today"]      = DateTime.Today.ToString("yyyy-MM-dd");
        }