public ActionResult Edit(CatalogBrand entity) { var dao = new CatalogDao(); var check = dao.UpdateCatalogBrand(entity); if (check == 1) { TempData["Message"] = "Cập nhật thành công"; return(RedirectToAction("index")); } ModelState.AddModelError("", "Cập nhật thất bại"); return(View()); }