public ActionResult Index(int id)
        {
            ProductBus.Xoa(id);
            var ds = ProductBus.DanhSach();

            return(View(ds));
        }
Beispiel #2
0
 public ActionResult Delete(string id, Product sp)
 {
     try
     {
         // TODO: Add delete logic here
         ProductBus.Xoa(id, sp);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }