public void AddGroupToGroup(AddGroupToGroupCommand command)
        {
            var parentGroup = GetExistingGroup(command.TenantId, command.ParentGroupName);
            var childGroup  = GetExistingGroup(command.TenantId, command.ChildGroupName);

            parentGroup.AddGroup(childGroup, _groupMemberService);
        }
Exemplo n.º 2
0
        public void AddGroupToGroup(AddGroupToGroupCommand command)
        {
            var parentGroup = GetExistingGroup(command.TenantId, command.ParentGroupName);
            var childGroup  = GetExistingGroup(command.TenantId, command.ChildGroupName);

            parentGroup.AddGroup(childGroup, this.groupMemberService);
            this.unitOfWork.Commit();
        }
Exemplo n.º 3
0
        private void AddGroupToGroupImpl(AddGroupToGroupCommand command)
        {
            if (command.ModelGuid == Guid.Empty)
            {
                return;
            }

            var modelsToGroup = command.ModelGuids
                                .Select(guid => CurrentWorkspace.GetModelInternal(guid))
                                .ToList();

            AddGroupToGroup(modelsToGroup, command.HostGroupGuid);
        }