public ProductTypeMaintMethod( ProductTypeMaint Cdo, ProductTypeMaintMethods Method, ProductTypeMaint_Parameters Parameters) { this.Cdo = Cdo; this.ServiceMethod = Method; this.Parameters = Parameters; }
public ResultStatus Freeze( ProductTypeMaint productTypeMaint, ProductTypeMaint_Parameters parameters, ProductTypeMaint_Request request, out ProductTypeMaint_Result result) { result = (ProductTypeMaint_Result)null; this.OnBeforeCall(nameof(Freeze), (DCObject)productTypeMaint, (Parameters)parameters, (Request)request); ResultStatus res; try { res = !this._IsTransactionOpened ? ((IProductTypeMaintService)this._Channel).Freeze(this._UserProfile, productTypeMaint, parameters, request, out result) : this.AddMethod((Method) new ProductTypeMaintMethod(productTypeMaint, ProductTypeMaintMethods.Freeze, parameters)); } catch (Exception ex) { res = this.OnThrowException(ex); } if (res.IsSuccess) { this.OnAfterCall(nameof(Freeze), res, (DCObject)productTypeMaint, (Parameters)parameters, (Request)request, (Result)result); } return(res); }