예제 #1
0
        public ActionResult PermissionShow(string name)
        {
            List <Permissions> list = user.GetPermissions(name);

            ViewBag.Parent = list.Where(m => m.PID == 0).ToList();
            ViewBag.Child  = list;
            return(View(list));
        }
        public ActionResult PermissionShow(string name)
        {
            List <Permissions> list = user.GetPermissions(name);

            return(View(list));
        }