예제 #1
0
        public void DepositCash()       //used to deposit cash into the current user's account.
        {
            WriteLine("DEPOSIT CASH\n");
d1:
            Write("\nEnter the cash amount you want to deposit: ");
            string tmp     = ReadLine();
            bool   isValid = bll.AmountValidation(tmp);

            if (!isValid)
            {
                Write("\n=> Invalid Input\n");
                goto d1;
            }
            decimal      amount = decimal.Parse(tmp);
            Transactions ts     = bll.DepositCash(cbo, amount);

            AskForReceipt(ts, cbo);
        }