Exemple #1
0
 public CurrencyViewModel(Models.CurrencyModel cModel)
 {
     this.ID         = cModel.ID;
     this.Name       = cModel.Name;
     this.HTMLSymbol = cModel.HTMLSymbol;
     this.IsCrypto   = cModel.IsCryptocurrency;
 }
        public ActionResult Index()
        {
            Models.CurrencyModel currencyModel = new Models.CurrencyModel();
            currencyModel.currencyCodes = Models.CurrencyService.GetCurrencyCodes();
            currencyModel.baseCurrency = Globals.BASE_CURRENCY;
            currencyModel.selectedCurrency = currencyModel.baseCurrency;

            return View(currencyModel);
        }