// // GET: /Loai/Create public ActionResult Create() { ChungLoaiViewModel cl = new ChungLoaiViewModel(); cl.dsCLoai = ChungLoaiBus.DanhSach(); return(View(cl)); }
public ActionResult Delete(int id, ChungLoai cl) { try { // TODO: Add delete logic here ChungLoaiBus.Xoa(id, cl); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Edit(int id, ChungLoai cl) { try { // TODO: Add update logic here ChungLoaiBus.Sua(id, cl); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(ChungLoai cl) { try { // TODO: Add insert logic here ChungLoaiBus.Them(cl); return(RedirectToAction("Index")); } catch { return(View()); } }
// public ActionResult Delete(int id) { return(View(ChungLoaiBus.ChiTiet(id))); }
public ActionResult Topbar() { return(PartialView("_Topbar", ChungLoaiBus.DanhSach())); }
// public ActionResult Index() { return(View(ChungLoaiBus.DanhSach())); }