public ActionResult ChiTiet(int id) { if (ModelState.IsValid) { var dao = new HoaDonDAO(); var result = dao.Edit(id); if (result) { SetAlert("Sửa thành công", "success"); return(RedirectToAction("Index")); } else { ModelState.AddModelError("", "Cập nhật không thành công"); } } return(View()); }