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