public NCRCauseCodeMaintMethod( NCRCauseCodeMaint Cdo, NCRCauseCodeMaintMethods Method, NCRCauseCodeMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( NCRCauseCodeMaint nCRCauseCodeMaint, NCRCauseCodeMaint_Parameters parameters, NCRCauseCodeMaint_Request request, out NCRCauseCodeMaint_Result result) { result = (NCRCauseCodeMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)nCRCauseCodeMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((INCRCauseCodeMaintService)this._Channel).Freeze(this._UserProfile, nCRCauseCodeMaint, parameters, request, out result) : this.AddMethod((Method) new NCRCauseCodeMaintMethod(nCRCauseCodeMaint, NCRCauseCodeMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)nCRCauseCodeMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }