Beispiel #1
0
        public int DeleteProduct()
        {
            updateProductDAO dao = new updateProductDAO();
            int result           = dao.Delete(this);

            return(result);
        }
Beispiel #2
0
        public updateProduct GetProductById(int id)
        {
            updateProductDAO dao = new updateProductDAO();

            return(dao.SelectById(id));
        }
Beispiel #3
0
        public List <updateProduct> GetAllProducts()
        {
            updateProductDAO dao = new updateProductDAO();

            return(dao.SelectAll());
        }