public ActionResult Edit(long id) { var dao = new SlideDAO(); var content = dao.GetByID(id); return(View(content)); }
public ActionResult ChiTiet(int ID) { var dao = new SlideDAO(); var model = dao.GetByID(ID); if (model.Status == true) { ViewBag.status = "Đang sử dụng"; ViewBag.status_class = "bg-green"; } else { ViewBag.status = "Khóa"; ViewBag.status_class = "bg-red"; } return(View(model)); }