Ejemplo n.º 1
0
 /// <summary>
 /// </summary>
 // TODO: Test
 private PermissionBranch GenerateParentBranch(PermissionBranch branch)
 {
     return((from bdata in _permissionTreeCache
             where bdata.branch_left <branch.branch_left
                                      where bdata.branch_right> branch.branch_right
             orderby bdata.branch_left descending
             select bdata).First());
 }
Ejemplo n.º 2
0
 private PermissionBranch GetParentBranch(PermissionBranch branch)
 {
     return(GetParentBranch(branch.branch_id));
 }