Exemplo n.º 1
0
 public int GetAccountBalance(int accountNumber)
 {
     int balance;
     DALMngr dalMngr = new DALMngr();
     balance = dalMngr.GetAccountBalance(accountNumber);
     return balance;
 }
Exemplo n.º 2
0
 public int GetAccountID(int accountNumber)
 {
     int accID;
     DALMngr dalMngr = new DALMngr();
     accID = dalMngr.GetAccountID(accountNumber);
     return accID;
 }
Exemplo n.º 3
0
 public DataSet GetCustomerAccounts()
 {
     DataSet ds = null;
     DALMngr dalManager = new DALMngr();
     try
     {
         ds = dalManager.GetCustomerAccounts();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return ds;
 }
Exemplo n.º 4
0
 public DataSet AuditAccount(int id)
 {
     DataSet ds = null;
     DALMngr dalMngr = new DALMngr();
     try
     {
         ds = dalMngr.AuditAccount(id);
     }
     catch(Exception ex)
     {
         throw ex;
     }
     return ds;
 }
Exemplo n.º 5
0
 public DataTable GetFullAccountDetails(int accountID)
 {
     DataTable dt = null;
     DALMngr dalManager = new DALMngr();
     try
     {
         dt = dalManager.GetFullCustomerDetails(accountID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return dt;
 }
Exemplo n.º 6
0
 public void CreateTransfer(int credID, int debID, TransferModel transfer)
 {
     DALMngr dalMngr = new DALMngr();
     dalMngr.CreateTransfer(credID, debID, transfer);
 }
Exemplo n.º 7
0
 public void CreateTransaction(TransactionModel newTransaction)
 {
     DALMngr dalMngr = new DALMngr();
     dalMngr.CreateTransaction(newTransaction);
     TransactionID = dalMngr.TransactionID;
 }
Exemplo n.º 8
0
 // Taking Objects from AddCustomer //
 public void CreateCustomerAccount(CustomerModel newCustomer, AccountModel newAccount, TransactionModel newTransaction)
 {
     // Sending to DAL //
     DALMngr dalMngr = new DALMngr();
     dalMngr.CreateCustomerAccount(newCustomer, newAccount, newTransaction);
 }
Exemplo n.º 9
0
 public void UpdateCustomersAccount(CustomerModel customer, AccountModel account)
 {
     DALMngr dalMngr = new DALMngr();
     dalMngr.UpdateCustomersAccount(customer, account);
 }
Exemplo n.º 10
0
 public void UpdateAccountBalance(AccountModel accountToUpdate)
 {
     DALMngr dalMngr = new DALMngr();
     dalMngr.UpdateAccountBalance(accountToUpdate);
 }
Exemplo n.º 11
0
 public bool IsValidLogin(UserModel userDetails)
 {
     bool isValid;
     bool valid;
     DALMngr dalMngr = new DALMngr();
     valid = dalMngr.IsValidLogin(userDetails);
     if(valid)
     {
         isValid = true;
     }
     else
     {
         isValid = false;
     }
     return isValid;
 }