public CARSeverityMaintMethod( CARSeverityMaint Cdo, CARSeverityMaintMethods Method, CARSeverityMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( CARSeverityMaint cARSeverityMaint, CARSeverityMaint_Parameters parameters, CARSeverityMaint_Request request, out CARSeverityMaint_Result result) { result = (CARSeverityMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)cARSeverityMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((ICARSeverityMaintService)this._Channel).Freeze(this._UserProfile, cARSeverityMaint, parameters, request, out result) : this.AddMethod((Method) new CARSeverityMaintMethod(cARSeverityMaint, CARSeverityMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)cARSeverityMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }