Exemplo n.º 1
0
        public ActionResult ReSubCategory(SubCategory subCategory)
        {
            SelectList selectList = (SelectList)ViewBag.Danhmuc;

            subCategory.danhmucma = subCategory.Category.ma;
            dao = new CategoryDao();
            bool check = dao.EditSubCategory(subCategory);

            if (check)
            {
                return(RedirectToAction("Details", "CategoryManager", new { ma = madanhmuc }));
            }
            else
            {
                return(JavaScript("<script>alert('Sửa không thành công')</script>"));
            }
        }