public Protocols.ToolkitResultProtocol AddSiteToAccount(Protocols.Interfaces.AddSiteToAccountSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); FChoice.Toolkits.Clarify.Interfaces.AddSiteToAccountSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Interfaces.AddSiteToAccountSetup(setupParam.SiteIDNum, setupParam.AccountIDNum, setupParam.RoleName); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.SiteIDNum = setupParam.SiteIDNum; } if( Global.IsPropertyDirty(2, setupParam.DirtyFieldFlags) ) { setup.AccountIDNum = setupParam.AccountIDNum; } if( Global.IsPropertyDirty(4, setupParam.DirtyFieldFlags) ) { setup.RoleName = setupParam.RoleName; } return new Protocols.ToolkitResultProtocol( toolkit.AddSiteToAccount(setup) ); }
public Protocols.ToolkitResultProtocol AddSiteToAccount(System.String siteIDNum, System.String accountIDNum, System.String roleName) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.AddSiteToAccount(siteIDNum, accountIDNum, roleName) ); }