Exemplo n.º 1
0
 public CommentTypeMaintMethod(
     CommentTypeMaint Cdo,
     CommentTypeMaintMethods Method,
     CommentTypeMaint_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }
Exemplo n.º 2
0
        public ResultStatus Freeze(
            CommentTypeMaint commentTypeMaint,
            CommentTypeMaint_Parameters parameters,
            CommentTypeMaint_Request request,
            out CommentTypeMaint_Result result)
        {
            result = (CommentTypeMaint_Result)null;
            this.OnBeforeCall(nameof(Freeze), (DCObject)commentTypeMaint, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((ICommentTypeMaintService)this._Channel).Freeze(this._UserProfile, commentTypeMaint, parameters, request, out result) : this.AddMethod((Method) new CommentTypeMaintMethod(commentTypeMaint, CommentTypeMaintMethods.Freeze, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(Freeze), res, (DCObject)commentTypeMaint, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }