public IActionResult Index() { var currencies = currencyRepository.CurrenciesToChooseFrom(); var viewModel = new CurrencyFormViewModel { Currencies = currencies, }; return(View(viewModel)); }
public IActionResult Index() { var currencies = currencyRepository.CurrenciesToChooseFrom(); return(View(currencies)); }