コード例 #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
ファイル: PLMPackService.svc.cs プロジェクト: minrogi/PLMPack
        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);
        }