Ejemplo n.º 1
0
        //[MyAuthorization(Roles = "Admin")]
        public ActionResult Index()
        {
            //string token = HttpContext.Session["User"].ToString();
            UserSSOInfo     info      = _SSOManager.SSO_Token_IsExist();
            List <MainMenu> menuelist = new List <MainMenu>();

            //foreach (var item in info.RoleList)
            //{
            //    //取父菜单
            //    List<Menu> tempmenue = item.MenuList.Where(x => x.ParentId == 0 && x.Menu_Type == 1).ToList();
            //    //取并集
            //    menuelist = menuelist.Union(tempmenue).ToList();
            //}
            ViewBag.MenuList = info.Mainlist;
            ViewBag.User     = HttpContext.Session["User"];
            return(View());
        }