Example #1
0
 public SubstitutionReasonMaintMethod(
     SubstitutionReasonMaint Cdo,
     SubstitutionReasonMaintMethods Method,
     SubstitutionReasonMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Example #2
0
        public ResultStatus Freeze(
            SubstitutionReasonMaint substitutionReasonMaint,
            SubstitutionReasonMaint_Parameters parameters,
            SubstitutionReasonMaint_Request request,
            out SubstitutionReasonMaint_Result result)
        {
            result = (SubstitutionReasonMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)substitutionReasonMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((ISubstitutionReasonMaintService)this._Channel).Freeze(this._UserProfile, substitutionReasonMaint, parameters, request, out result) : this.AddMethod((Method) new SubstitutionReasonMaintMethod(substitutionReasonMaint, SubstitutionReasonMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)substitutionReasonMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }