Exemple #1
0
        public IActionResult Index()
        {
            var ratesModel = new LiveRatesViewModel
            {
                Currencies       = DropDownHelper.GetSelectListItems(),
                SelectedCurrency = "PLN"
            };

            return(View(ratesModel));
        }
        public IActionResult Index()
        {
            var model = new HistoricalRatesViewModel
            {
                Currencies   = DropDownHelper.GetSelectListItems(),
                CurrencyFrom = "PLN",
                CurrencyTo   = "EUR"
            };

            return(View(model));
        }