public TrainingRecordStatusMaintMethod( TrainingRecordStatusMaint Cdo, TrainingRecordStatusMaintMethods Method, TrainingRecordStatusMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( TrainingRecordStatusMaint trainingRecordStatusMaint, TrainingRecordStatusMaint_Parameters parameters, TrainingRecordStatusMaint_Request request, out TrainingRecordStatusMaint_Result result) { result = (TrainingRecordStatusMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)trainingRecordStatusMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((ITrainingRecordStatusMaintService)this._Channel).Freeze(this._UserProfile, trainingRecordStatusMaint, parameters, request, out result) : this.AddMethod((Method) new TrainingRecordStatusMaintMethod(trainingRecordStatusMaint, TrainingRecordStatusMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)trainingRecordStatusMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }