public ActionResult Index(int id) { ProductBus.Xoa(id); var ds = ProductBus.DanhSach(); return(View(ds)); }
public ActionResult Delete(string id, Product sp) { try { // TODO: Add delete logic here ProductBus.Xoa(id, sp); return(RedirectToAction("Index")); } catch { return(View()); } }