public ActionResult Edit(String id, LoaiSP LSP) { try { // TODO: Add update logic here PhanLoaiBus.UpdateLSP(id, LSP); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult XoaTam(String id, LoaiSP LSP) { try { // TODO: Add delete logic here LSP.TinhTrang = 1; PhanLoaiBus.UpdateLSP(id, LSP); return(RedirectToAction("Index")); } catch { return(View()); } }