public ActionResult Edit(String id, LoaiSanPham lsp) { try { // TODO: Add update logic here LoaiSanPhamBUS.EditLSP(id, lsp); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult XoaTamThoi(String id, LoaiSanPham lsp) { try { // TODO: Add delete logic here lsp.TinhTrang = "1"; LoaiSanPhamBUS.EditLSP(id, lsp); return(RedirectToAction("Index")); } catch { return(View()); } }