public CustomerMaintMethod( CustomerMaint Cdo, CustomerMaintMethods Method, CustomerMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( CustomerMaint customerMaint, CustomerMaint_Parameters parameters, CustomerMaint_Request request, out CustomerMaint_Result result) { result = (CustomerMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)customerMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((ICustomerMaintService)this._Channel).Freeze(this._UserProfile, customerMaint, parameters, request, out result) : this.AddMethod((Method) new CustomerMaintMethod(customerMaint, CustomerMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)customerMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }