/// <summary> /// 角色菜单首页 /// </summary> /// <returns></returns> public ActionResult RoleMenu() { #region 角色列表 var roleList = new RoleBll().GetList(); roleList.Insert(0, new SysRole() { Name = "请选择", RoleId = "0" }); var dropList = new SelectList(roleList, "RoleId", "Name"); ViewBag.dropList = dropList; #endregion #region 菜单列表 var list = menuBll.GetMenuByPid("0"); #endregion return(View(list)); }