예제 #1
0
        //******************  ACCOUNTS DGV ***************

        public DataSet GetAllAccountsBLL()
        {
            DALAccountMgmt dalAM = new DALAccountMgmt();

            DataSet ds = dalAM.GetAllAccountsDAL();


            return(ds);
        }
예제 #2
0
        public bool CheckLoginBLL(Staff stf)
        {
            bool success = false;

            DALAccountMgmt dalAM = new DALAccountMgmt();

            try
            {
                success = dalAM.CheckLoginDAL(stf);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(success);
        }
예제 #3
0
        //edit holder
        public bool EditAccHolderBLL(AccountHolder ah)
        {
            bool success = false;

            DALAccountMgmt dalAM = new DALAccountMgmt();

            try
            {
                success = dalAM.EditAccHolderDAL(ah);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(success);
        }
예제 #4
0
        //edit account
        public bool EditAccountBLL(Account acc)
        {
            bool success = false;

            DALAccountMgmt dalAM = new DALAccountMgmt();

            try
            {
                success = dalAM.EditAccountDAL(acc);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(success);
        }
예제 #5
0
        // *************** EDIT ACCOUNT ****************

        //get account details
        public Account GetAccountDetailsBLL(int accNum)
        {
            Account acc;

            DALAccountMgmt dalAM = new DALAccountMgmt();

            try
            {
                acc = dalAM.GetAccountDetailsDAL(accNum);
            }
            catch (Exception ex)
            {
                throw;
            }
            return(acc);
        }
예제 #6
0
        //new account
        public bool AddNewAccountBLL(Account acc, int holderID)
        {
            bool success = false;

            DALAccountMgmt dalAM = new DALAccountMgmt();

            try
            {
                success = dalAM.AddNewAccountDAL(acc, holderID);
            }
            catch (Exception ex)
            {
                throw;
            }

            return(success);
        }
예제 #7
0
        //************* CREATE NEW HOLDER AND ACCOUNT **************

        public AccountHolder GetAccHolderDetailsBLL(int accHolderID)
        {
            AccountHolder ah;

            DALAccountMgmt dalAM = new DALAccountMgmt();

            try
            {
                ah = dalAM.GetAccHolderDetailsDAL(accHolderID);
            }
            catch (Exception ex)
            {
                throw;
            }

            return(ah);
        }