public Protocols.ToolkitResultProtocol RemoveSiteFromAccount(Protocols.Interfaces.RemoveSiteFromAccountSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit toolkit = new FChoice.Toolkits.Clarify.Interfaces.InterfacesToolkit( session ); FChoice.Toolkits.Clarify.Interfaces.RemoveSiteFromAccountSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Interfaces.RemoveSiteFromAccountSetup(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.RemoveSiteFromAccount(setup) ); }
public Protocols.ToolkitResultProtocol RemoveSiteFromAccount(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.RemoveSiteFromAccount(siteIDNum, accountIDNum, roleName) ); }