常用方法
常用方法
常用方法
常用方法
public ActionResult AddSubCategory(SubCategory subCategory) { //subCategory.danhmucma = new Guid(Request.Form["Danhmuc"].ToString()); dao = new CategoryDao(); subCategory.danhmucma = madanhmuc; bool check = dao.AddSubCategory(subCategory); if (check) { return(RedirectToAction("Details", "CategoryManager", new { ma = madanhmuc })); } else { return(JavaScript("<script>alert('Thêm không thành công')</script>")); } }