Ejemplo n.º 1
0
        public ResultStatus GetActions(
            NCRUpdate nCRUpdate,
            NCRUpdate_Parameters parameters,
            NCRUpdate_Request request,
            out NCRUpdate_Result result)
        {
            result = (NCRUpdate_Result)null;
            this.OnBeforeCall(nameof(GetActions), (DCObject)nCRUpdate, (Parameters)parameters, (Request)request);
            ResultStatus res;

            try
            {
                res = !this._IsTransactionOpened ? ((INCRUpdateService)this._Channel).GetActions(this._UserProfile, nCRUpdate, parameters, request, out result) : this.AddMethod((Method) new NCRUpdateMethod(nCRUpdate, NCRUpdateMethods.GetActions, parameters));
            }
            catch (Exception ex)
            {
                res = this.OnThrowException(ex);
            }
            if (res.IsSuccess)
            {
                this.OnAfterCall(nameof(GetActions), res, (DCObject)nCRUpdate, (Parameters)parameters, (Request)request, (Result)result);
            }
            return(res);
        }
Ejemplo n.º 2
0
 public NCRUpdateMethod(NCRUpdate Cdo, NCRUpdateMethods Method, NCRUpdate_Parameters Parameters)
 {
     this.Cdo           = Cdo;
     this.ServiceMethod = Method;
     this.Parameters    = Parameters;
 }