public Protocols.ToolkitResultProtocol UnrelateCaseFromParentCase(Protocols.Support.UnrelateCaseFromParentCaseSetupProtocol setupParam) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); FChoice.Toolkits.Clarify.Support.UnrelateCaseFromParentCaseSetup setup; switch( setupParam.ConstructorCue ) { case 0: setup = new FChoice.Toolkits.Clarify.Support.UnrelateCaseFromParentCaseSetup(setupParam.CaseIDNum); break; default: throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue)); } if( Global.IsPropertyDirty(1, setupParam.DirtyFieldFlags) ) { setup.CaseIDNum = setupParam.CaseIDNum; } return new Protocols.ToolkitResultProtocol( toolkit.UnrelateCaseFromParentCase(setup) ); }
public Protocols.ToolkitResultProtocol UnrelateCaseFromParentCase(System.String caseIDNum) { ClarifySession session = Global.GetSession( AuthHeader ); FChoice.Toolkits.Clarify.Support.SupportToolkit toolkit = new FChoice.Toolkits.Clarify.Support.SupportToolkit( session ); return new Protocols.ToolkitResultProtocol( toolkit.UnrelateCaseFromParentCase(caseIDNum) ); }