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; } }
public override bool WebSendingTransaction(Bank reciver, int fintDolars) { throw new NotImplementedException(); }
public abstract bool WebRecivingTransaction(Bank sender, int fintDolars);
public abstract bool WebSendingTransaction(Bank reciver, int fintDolars);