public TrainingRequirementMaintMethod( TrainingRequirementMaint Cdo, TrainingRequirementMaintMethods Method, TrainingRequirementMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus DeleteAllRevisions( TrainingRequirementMaint trainingRequirementMaint, TrainingRequirementMaint_Parameters parameters, TrainingRequirementMaint_Request request, out TrainingRequirementMaint_Result result) { result = (TrainingRequirementMaint_Result)null; this.OnBeforeCall(nameof(DeleteAllRevisions), (DCObject)trainingRequirementMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((ITrainingRequirementMaintService)this._Channel).DeleteAllRevisions(this._UserProfile, trainingRequirementMaint, parameters, request, out result) : this.AddMethod((Method) new TrainingRequirementMaintMethod(trainingRequirementMaint, TrainingRequirementMaintMethods.DeleteAllRevisions, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(DeleteAllRevisions), res, (DCObject)trainingRequirementMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }