public async Task <string> LoadMenuPermission() { //所有权限 var permissions = (await _permissionLogic.GetSystemPermissionMenuByUserId(_currentUser.UserId)).ToList(); //所有第一级 var firstPermissions = permissions.Where(f => f.parent.ToString() == Guid.Empty.ToString()).ToList(); foreach (var permission in firstPermissions) { _permissionStr.Append(GetChildNodes(permissions, permission)); } return(_permissionStr.ToString()); }
public async Task <JsonResult> LoadMenuPermission() { var data = (await _permissionLogic.GetSystemPermissionMenuByUserId(CurrentUser.UserId)).ToList(); return(Json(data)); }
public Task <IEnumerable <TreeEntity> > LoadMenuPermission() { var data = (_permissionLogic.GetSystemPermissionMenuByUserId(CurrentUser.UserId)); return(data); }