Beispiel #1
0
        public override ReturnValue Update()
        {
            ReturnValue _result = new ReturnValue();

            PGateway _gateway = new PGateway(this);

            _result = _gateway.Update();

            return(_result);
        }
Beispiel #2
0
        public override ReturnValue Update(Transaction trans)
        {
            ReturnValue _result = new ReturnValue();


            PGateway _gateway = new PGateway(this, trans);

            _result = _gateway.Update();

            if (_result.Success == false)
            {
                if (trans != null)
                {
                    trans.RollbackTransaction();
                }
                return(_result);
            }



            return(_result);
        }