public void AddGroupToGroup(AddGroupToGroupCommand command) { var parentGroup = GetExistingGroup(command.TenantId, command.ParentGroupName); var childGroup = GetExistingGroup(command.TenantId, command.ChildGroupName); parentGroup.AddGroup(childGroup, _groupMemberService); }
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(); }
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); }