public int GetAccountBalance(int accountNumber) { int balance; DALMngr dalMngr = new DALMngr(); balance = dalMngr.GetAccountBalance(accountNumber); return balance; }
public int GetAccountID(int accountNumber) { int accID; DALMngr dalMngr = new DALMngr(); accID = dalMngr.GetAccountID(accountNumber); return accID; }
public DataSet GetCustomerAccounts() { DataSet ds = null; DALMngr dalManager = new DALMngr(); try { ds = dalManager.GetCustomerAccounts(); } catch (Exception ex) { throw ex; } return ds; }
public DataSet AuditAccount(int id) { DataSet ds = null; DALMngr dalMngr = new DALMngr(); try { ds = dalMngr.AuditAccount(id); } catch(Exception ex) { throw ex; } return ds; }
public DataTable GetFullAccountDetails(int accountID) { DataTable dt = null; DALMngr dalManager = new DALMngr(); try { dt = dalManager.GetFullCustomerDetails(accountID); } catch (Exception ex) { throw ex; } return dt; }
public void CreateTransfer(int credID, int debID, TransferModel transfer) { DALMngr dalMngr = new DALMngr(); dalMngr.CreateTransfer(credID, debID, transfer); }
public void CreateTransaction(TransactionModel newTransaction) { DALMngr dalMngr = new DALMngr(); dalMngr.CreateTransaction(newTransaction); TransactionID = dalMngr.TransactionID; }
// 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); }
public void UpdateCustomersAccount(CustomerModel customer, AccountModel account) { DALMngr dalMngr = new DALMngr(); dalMngr.UpdateCustomersAccount(customer, account); }
public void UpdateAccountBalance(AccountModel accountToUpdate) { DALMngr dalMngr = new DALMngr(); dalMngr.UpdateAccountBalance(accountToUpdate); }
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; }