Esempio n. 1
0
        public string Withdraw(string AccountID, int Amount, Customer Cust)
        {
            AccountDAL Adal        = new AccountDAL();
            string     AccountType = Adal.AccountType(AccountID);
            var        status      = Adal.WithDrawDAL(AccountType, AccountID, Amount, Cust);

            Console.WriteLine(status);
            return(status);
        }
Esempio n. 2
0
        public string CloseAccount(Customer Customer, string AccountID)
        {
            AccountDAL Adal        = new AccountDAL();
            string     AccountType = Adal.AccountType(AccountID);
            var        status      = Adal.CloseAccountDAL(AccountType, AccountID, Customer);

            Console.WriteLine(status);
            return(status);
        }
Esempio n. 3
0
        public void Transfer(string YourAccountID, string SecondAccountID, int Amount, Customer c)
        {
            AccountDAL Adal        = new AccountDAL();
            string     AccountType = Adal.AccountType(YourAccountID);
            AccountDAL Bdal        = new AccountDAL();
            string     Acctypeb    = Bdal.AccountType(SecondAccountID);
            var        status      = Adal.TransferDAL(YourAccountID, AccountType, SecondAccountID, Acctypeb, Amount, c);

            Console.WriteLine(status);
        }
Esempio n. 4
0
        public string Deposit(string AccountID, string Amount, Customer Cust)
        {
            int        Am          = Convert.ToInt32(Amount);
            AccountDAL Adal        = new AccountDAL();
            string     AccountType = Adal.AccountType(AccountID);
            var        status      = Adal.DepositDAL(AccountType, AccountID, Am, Cust);

            Console.WriteLine(status);
            return(status);
        }