public ShipmentDestinationGrpMaintMethod( ShipmentDestinationGrpMaint Cdo, ShipmentDestinationGrpMaintMethods Method, ShipmentDestinationGrpMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( ShipmentDestinationGrpMaint shipmentDestinationGrpMaint, ShipmentDestinationGrpMaint_Parameters parameters, ShipmentDestinationGrpMaint_Request request, out ShipmentDestinationGrpMaint_Result result) { result = (ShipmentDestinationGrpMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)shipmentDestinationGrpMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IShipmentDestinationGrpMaintService)this._Channel).Freeze(this._UserProfile, shipmentDestinationGrpMaint, parameters, request, out result) : this.AddMethod((Method) new ShipmentDestinationGrpMaintMethod(shipmentDestinationGrpMaint, ShipmentDestinationGrpMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)shipmentDestinationGrpMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }