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); }
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); }
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); }
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); }