//cho bản chạy ngoài //public ActionResult Menu() //{ // if (ses.loginName == "") // { // Response.Redirect("/staff/login"); // } // //ViewBag.loginname = ses.loginFullName; // //List<string> st = new List<string>(); // //st.Add("Menu1"); // //st.Add("Menu2"); // //st.Add("Menu3"); // SYSMENU_BUS bus = new SYSMENU_BUS(); // List<SYSMENU_OBJ> li = bus.getAdmin(ses.gUNIVERSITYCODE, ses.getFunctionList()); // bus.CloseConnection(); // return View(li); //} public ActionResult FontendMenu() { SYSMENU_BUS bus = new SYSMENU_BUS(); List <SYSMENU_OBJ> li = bus.getAdmin(ses.gUNIVERSITYCODE, ses.getFunctionList()); bus.CloseConnection(); return(View(li)); }
public ActionResult Menu() { SYSMENU_BUS bus = new SYSMENU_BUS(); string functionlist = ses.getFunctionList(); List <SYSMENU_OBJ> li = bus.getAdmin(ses.gUNIVERSITYCODE, functionlist); foreach (SYSMENU_OBJ obj in li) { if (string.IsNullOrEmpty(obj.ICON)) { obj.ICON = "fa-circle-o"; } } bus.CloseConnection(); return(View(li)); }