Esempio n. 1
0
        // GET: Currency
        public ActionResult Index()
        {
            CurrencyClient cc = new CurrencyClient();

            ViewBag.listCurrencies = cc.findAll();
            return(View());
        }
Esempio n. 2
0
        public String drpCurrencyCountryList()
        {
            CurrencyClient cc = new CurrencyClient();


            // ViewBag.listCurrencies = cc.findAll();

            var    currencyList = cc.findAll().ToList();
            string output       = "<option value=''>Select Currency</option>"; ///THIS APPEARS IN THE DROP DOWN MENU AS DEFAULT

            foreach (var item in currencyList)
            {
                output += "<option value='" + item.Conversion_Rate + "'>" + item.Currency_Name + "</option>";
            }

            return(output);
        }