예제 #1
0
        public void ShareTreeNode(DCTreeNode dcNode, DCGroup dcGroup)
        {
            PLMPackEntities db   = new PLMPackEntities();
            AspNetUser      user = AspNetUser.GetByUserName(db, UserName);
            Group           gp   = Group.GetById(db, dcGroup.ID);

            TreeNode node = TreeNode.GetById(db, dcNode.ID);

            node.Share(db, user, gp);
        }
예제 #2
0
        public void ShareTreeNode(DCTreeNode dcNode, DCGroup dcGroup)
        {
            PLMPackEntities db = new PLMPackEntities();
            AspNetUser user = AspNetUser.GetByUserName(db, UserName);
            Group gp = Group.GetById(db, dcGroup.ID);

            TreeNode node = TreeNode.GetById(db, dcNode.ID);
            node.Share(db, user, gp);
        }