public ProductMaintMethod( ProductMaint Cdo, ProductMaintMethods Method, ProductMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus DeleteAllRevisions( ProductMaint productMaint, ProductMaint_Parameters parameters, ProductMaint_Request request, out ProductMaint_Result result) { result = (ProductMaint_Result)null; this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)productMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IProductMaintService)this._Channel).DeleteAllRevisions(this._UserProfile, productMaint, parameters, request, out result) : this.AddMethod((Method) new ProductMaintMethod(productMaint, ProductMaintMethods.DeleteAllRevisions, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(DeleteAllRevisions), res, (DCObject)productMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }