Esempio n. 1
0
        public void Save()
        {
            bool flag = false;

            if (command == "UPDATE")
            {
                flag = new BuyerBizDAO().UpdateBuyer(this);
            }
            else if (command == "INSERT")
            {
                flag = new BuyerBizDAO().InsertBuyer(this);
            }
        }
Esempio n. 2
0
        public List <Buyer> GetBuyers(string buyerEmployeeID, string buyerPassword)
        {
            var buyerList = new BuyerBizDAO().GetBuyers(buyerEmployeeID, buyerPassword);

            return(buyerList);
        }
Esempio n. 3
0
        public Buyer GetById(string buyerEmployeeID, string buyerPassword)
        {
            var buyers = new BuyerBizDAO().GetBuyers(buyerEmployeeID, buyerPassword);

            return(buyers[0]);
        }