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)); }