public ActionResult Add(string name, long categoryid) { tblProduct product = new tblProduct(); product.name = name; product.categoryid = categoryid; var effectedRow = new ProductBLL().addProduct(product); return Content("" + effectedRow); }
public int deleteProduct(tblProduct product) { return productDAL.deleteProduct(product); }
public int updateProduct(tblProduct product) { return productDAL.updateProduct(product); }
public int addProduct(tblProduct product) { return productDAL.addProduct(product); }