Exemplo n.º 1
0
        public bool transaction(Bank reciver, int fintDolars)
        {
            Console.WriteLine("Begin transaction from " + this.ToString() + " to " + reciver.ToString());

            if (this.WebSendingTransaction(reciver, fintDolars) && reciver.WebRecivingTransaction(this, fintDolars))
            {
                Console.WriteLine("Transaction completed!");
                return(true);
            }
            else
            {
                this.WebrollBack();
                reciver.WebrollBack();
                return(false);
            }
        }
Exemplo n.º 2
0
        public bool transaction(Bank reciver, int fintDolars)
        {
            Console.WriteLine("Begin transaction from " + this.ToString() + " to " + reciver.ToString());

            if (this.WebSendingTransaction(reciver, fintDolars) && reciver.WebRecivingTransaction(this, fintDolars))
            {
                Console.WriteLine("Transaction completed!");
                return true;
            }
            else
            {
                this.WebrollBack();
                reciver.WebrollBack();
                return false;
            }
        }