public ActionResult Category(int id)//Trả về view những sản phẩm của danh mục đã chọn { var category = new DANHMUCBLL().ViewDetail(id); var sanpham = new SANPHAMBLL(); ViewBag.ProductsID = sanpham.ListProductID(id); return(View(category)); }
public ActionResult ProductCategory()//Trả về view cột danh mục sản phẩm { var model = new DANHMUCBLL().ListAll(); return(PartialView(model)); }