public ActionResult _Category2() { ProducerDao db = new ProducerDao(); var model = db.GetAll(""); return(PartialView(model)); }
// GET: Admin/ContentCategory public ActionResult Index(string searchString, int?page) { int pageSize = 10; int pageNumber = (page ?? 1); var model = db.GetAll(searchString).ToPagedList(pageNumber, pageSize); return(View(model)); }
public ActionResult _Category() { ProducerDao db = new ProducerDao(); var model = db.GetAll(""); // theo tên hả? uwf theo ten cua cate. category? return(PartialView(model)); }