public int DeleteProduct() { updateProductDAO dao = new updateProductDAO(); int result = dao.Delete(this); return(result); }
public updateProduct GetProductById(int id) { updateProductDAO dao = new updateProductDAO(); return(dao.SelectById(id)); }
public List <updateProduct> GetAllProducts() { updateProductDAO dao = new updateProductDAO(); return(dao.SelectAll()); }