public ActionResult Edit(GiftCard giftCard) { if (ModelState.IsValid) { var giftCardDao = new GiftCardDao(); var result = giftCardDao.UpdateGiftCard(giftCard); if (result) { SetNotification("Cập nhật GiftCard thành công", "success"); return(RedirectToAction("Index", "GiftCard")); } else { ModelState.AddModelError("", "Cập nhật GiftCard không thành công"); } } return(View()); }