public Protocols.ToolkitResultProtocol DeleteEcoDetail(Protocols.DepotRepair.DeleteEcoDetailSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession(AuthHeader);

            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit   toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit(session);
            FChoice.Toolkits.Clarify.DepotRepair.DeleteEcoDetailSetup setup;

            switch (setupParam.ConstructorCue)
            {
            case 0:
                setup = new FChoice.Toolkits.Clarify.DepotRepair.DeleteEcoDetailSetup(setupParam.EcoDetailObjid);
                break;

            default:
                throw new InvalidOperationException(string.Format("Constructor index '{0}' does not exist.", setupParam.ConstructorCue));
            }

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


            return(new Protocols.ToolkitResultProtocol(toolkit.DeleteEcoDetail(setup)));
        }
        public Protocols.ToolkitResultProtocol DeleteEcoDetail(System.Int32 ecoDetailObjid)
        {
            ClarifySession session = Global.GetSession(AuthHeader);

            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit(session);

            return(new Protocols.ToolkitResultProtocol(toolkit.DeleteEcoDetail(ecoDetailObjid)));
        }
        public Protocols.ToolkitResultProtocol DeleteEcoDetail(Protocols.DepotRepair.DeleteEcoDetailSetupProtocol setupParam)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session );
            FChoice.Toolkits.Clarify.DepotRepair.DeleteEcoDetailSetup setup;

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

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

            return new Protocols.ToolkitResultProtocol( toolkit.DeleteEcoDetail(setup) );
        }
        public Protocols.ToolkitResultProtocol DeleteEcoDetail(System.Int32 ecoDetailObjid)
        {
            ClarifySession session = Global.GetSession( AuthHeader );
            FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit toolkit = new FChoice.Toolkits.Clarify.DepotRepair.DepotRepairToolkit( session );

            return new Protocols.ToolkitResultProtocol( toolkit.DeleteEcoDetail(ecoDetailObjid) );
        }