public RecipeMaintMethod( RecipeMaint Cdo, RecipeMaintMethods Method, RecipeMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus DeleteAllRevisions( RecipeMaint recipeMaint, RecipeMaint_Parameters parameters, RecipeMaint_Request request, out RecipeMaint_Result result) { result = (RecipeMaint_Result)null; this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)recipeMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IRecipeMaintService)this._Channel).DeleteAllRevisions(this._UserProfile, recipeMaint, parameters, request, out result) : this.AddMethod((Method) new RecipeMaintMethod(recipeMaint, RecipeMaintMethods.DeleteAllRevisions, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(DeleteAllRevisions), res, (DCObject)recipeMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }