public Protocols.ToolkitResultProtocol AddSitePartToContract(Protocols.Interfaces.AddSitePartToContractSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session );
            FChoice.Toolkits.Clarify.Interfaces.AddSitePartToContractSetup setup;

            switch( setupParam.ConstructorCue )
            {
                case 0:
                    setup = new FChoice.Toolkits.Clarify.Interfaces.AddSitePartToContractSetup(setupParam.ContractIDNum, setupParam.SiteIDNum, setupParam.SitePartObjid);
                    break;
                default:
                    throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

            if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) )
            {
                setup.ContractIDNum = setupParam.ContractIDNum;
            }

            if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) )
            {
                setup.SiteIDNum = setupParam.SiteIDNum;
            }

            if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) )
            {
                setup.SitePartObjid = setupParam.SitePartObjid;
            }

            return new Protocols.ToolkitResultProtocol( toolkit.AddSitePartToContract(setup) );
        }
        public Protocols.ToolkitResultProtocol AddSitePartToContract(System.String contractIDNum, System.String siteIDNum, System.Int32 sitePartObjid)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.AddSitePartToContract(contractIDNum, siteIDNum, sitePartObjid) );
        }