public ActionResult DeleteProduct(int id) { ProductDao p = new ProductDao(); p = pBusiness.SelectById(id); pBusiness.Delete(p); return RedirectToAction("Index"); }
//insert public void Insert(ProductDao p) { this.Service.Insert(p); }
//update public void Update(ProductDao p) { this.Service.Update(p); }
//delete public void Delete(ProductDao p) { this.Service.Delete(p); }