public ActionResult Edit(ProductCategory productcategory) { if (ModelState.IsValid) { var dao = new ProductCategoryD(); var result = dao.Update(productcategory); if (result) { SetAlert("Cập Nhật danh mục sản phẩm thành công", "success"); return(RedirectToAction("Index", "ProductCategory")); } else { ModelState.AddModelError("", "Cập Nhật danh mục sản phẩm không thành công"); } } return(View("Index")); }