// GET: Currency public ActionResult Index() { CurrencyClient cc = new CurrencyClient(); ViewBag.listCurrencies = cc.findAll(); return(View()); }
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); }