Exemplo n.º 1
0
        public ActionResult Sua(TheLoai tl)
        {
            bool res = categoryDAO.update(tl);

            if (res)
            {
                return(RedirectToAction("Index"));
            }
            ModelState.AddModelError("", "Cập nhật xảy ra lỗi, vui lòng kiểm tra lại");
            return(View());
        }