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"); }
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"); }