public ShippingReasonGroupMaintMethod( ShippingReasonGroupMaint Cdo, ShippingReasonGroupMaintMethods Method, ShippingReasonGroupMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( ShippingReasonGroupMaint shippingReasonGroupMaint, ShippingReasonGroupMaint_Parameters parameters, ShippingReasonGroupMaint_Request request, out ShippingReasonGroupMaint_Result result) { result = (ShippingReasonGroupMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)shippingReasonGroupMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IShippingReasonGroupMaintService)this._Channel).Freeze(this._UserProfile, shippingReasonGroupMaint, parameters, request, out result) : this.AddMethod((Method) new ShippingReasonGroupMaintMethod(shippingReasonGroupMaint, ShippingReasonGroupMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)shippingReasonGroupMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }