public OrderTypeMaintMethod( OrderTypeMaint Cdo, OrderTypeMaintMethods Method, OrderTypeMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( OrderTypeMaint orderTypeMaint, OrderTypeMaint_Parameters parameters, OrderTypeMaint_Request request, out OrderTypeMaint_Result result) { result = (OrderTypeMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)orderTypeMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IOrderTypeMaintService)this._Channel).Freeze(this._UserProfile, orderTypeMaint, parameters, request, out result) : this.AddMethod((Method) new OrderTypeMaintMethod(orderTypeMaint, OrderTypeMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)orderTypeMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }