Beispiel #1
0
 public ShippingReasonMaintMethod(
     ShippingReasonMaint Cdo,
     ShippingReasonMaintMethods Method,
     ShippingReasonMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Beispiel #2
0
        public ResultStatus Freeze(
            ShippingReasonMaint shippingReasonMaint,
            ShippingReasonMaint_Parameters parameters,
            ShippingReasonMaint_Request request,
            out ShippingReasonMaint_Result result)
        {
            result = (ShippingReasonMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)shippingReasonMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

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