public ActionResult Add() { ViewBag.TypeId = new SelectList(Dao.ListAllType(), "Id", "Name"); ViewBag.ParentId = new SelectList(Dao.ListAll(), "Id", "Text"); return(View()); }
public ActionResult Index() { var ouput = new SettingsModel(); ouput.Banener = Dao.GetValue("Banener"); ouput.Customize_Site = Dao.GetValue("Customize_Site"); ouput.Infor_Site = Dao.GetValue("Infor_Site"); ouput.Logo = Dao.GetValue("Logo"); ouput.Site_Description = Dao.GetValue("Site_Description"); ouput.Site_Keywords = Dao.GetValue("Site_Keywords"); ouput.Site_Title = Dao.GetValue("Site_Title"); ouput.Terms_Site = Dao.GetValue("Terms_Site"); ouput.Main_Menu = Dao.GetValue("Main_Menu"); ouput.Menu_01 = Dao.GetValue("Menu_01"); ouput.Menu_02 = Dao.GetValue("Menu_02"); ouput.Menu_03 = Dao.GetValue("Menu_03"); ouput.Menu_04 = Dao.GetValue("Menu_04"); ouput.Menu_05 = Dao.GetValue("Menu_05"); ouput.Name_Support01 = Dao.GetValue("Name_Support01"); ouput.Phone_Support01 = Dao.GetValue("Phone_Support01"); ouput.Skype_Support01 = Dao.GetValue("Skype_Support01"); ouput.Yahoo_Support01 = Dao.GetValue("Yahoo_Support01"); ouput.Name_Support02 = Dao.GetValue("Name_Support02"); ouput.Phone_Support02 = Dao.GetValue("Phone_Support02"); ouput.Skype_Support02 = Dao.GetValue("Skype_Support02"); ouput.Yahoo_Support02 = Dao.GetValue("Yahoo_Support02"); ouput.Name_Support03 = Dao.GetValue("Name_Support03"); ouput.Phone_Support03 = Dao.GetValue("Phone_Support03"); ouput.Skype_Support03 = Dao.GetValue("Skype_Support03"); ouput.Yahoo_Support03 = Dao.GetValue("Yahoo_Support03"); ViewBag.Main_Menu = new SelectList(MDao.ListAllType(), "Id", "Name", ouput.Main_Menu); ViewBag.Menu_01 = new SelectList(MDao.ListAllType(), "Id", "Name", ouput.Menu_01); ViewBag.Menu_02 = new SelectList(MDao.ListAllType(), "Id", "Name", ouput.Menu_02); ViewBag.Menu_03 = new SelectList(MDao.ListAllType(), "Id", "Name", ouput.Menu_03); ViewBag.Menu_04 = new SelectList(MDao.ListAllType(), "Id", "Name", ouput.Menu_04); ViewBag.Menu_05 = new SelectList(MDao.ListAllType(), "Id", "Name", ouput.Menu_05); return(View(ouput)); }