Beispiel #1
0
        public ActionResult Them(TheLoai tl)
        {
            int res = categoryDAO.add(tl);

            if (res != -1)
            {
                return(RedirectToAction("Index"));
            }
            ModelState.AddModelError("", "Thêm danh mục xảy ra lỗi. Xin thử lại!");
            return(View());
        }