Ejemplo n.º 1
0
 public CurrencyViewModel(Models.CurrencyModel cModel)
 {
     this.ID         = cModel.ID;
     this.Name       = cModel.Name;
     this.HTMLSymbol = cModel.HTMLSymbol;
     this.IsCrypto   = cModel.IsCryptocurrency;
 }
Ejemplo n.º 2
0
        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);
        }