Exemplo n.º 1
0
        public void AddGroupUsers(WfGroup group, IEnumerable <IUser> users)
        {
            group.NullCheck("group");
            users.NullCheck("users");

            WfGroupUserCollection groupUsers = new WfGroupUserCollection();

            foreach (IUser user in users)
            {
                WfGroupUser gu = new WfGroupUser();

                gu.GroupID = group.GroupID;
                gu.User    = user;

                groupUsers.Add(gu);
            }

            InsertGroupUsers(groupUsers);
        }