public RemoveDifferenceReasonMaintMethod( RemoveDifferenceReasonMaint Cdo, RemoveDifferenceReasonMaintMethods Method, RemoveDifferenceReasonMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( RemoveDifferenceReasonMaint removeDifferenceReasonMaint, RemoveDifferenceReasonMaint_Parameters parameters, RemoveDifferenceReasonMaint_Request request, out RemoveDifferenceReasonMaint_Result result) { result = (RemoveDifferenceReasonMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)removeDifferenceReasonMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IRemoveDifferenceReasonMaintService)this._Channel).Freeze(this._UserProfile, removeDifferenceReasonMaint, parameters, request, out result) : this.AddMethod((Method) new RemoveDifferenceReasonMaintMethod(removeDifferenceReasonMaint, RemoveDifferenceReasonMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)removeDifferenceReasonMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }