public ActionResult Menu() { var model = new HierDAO().ListAll(); ViewBag.Category = new CategoryDAO().ListAll(); return(PartialView(model)); }
public ActionResult GetData() { TMDTModel db = new TMDTModel(); var ListCategory = new HierDAO().ListAll(); ViewBag.Catlist = new CategoryDAO().ListAll(); ViewBag.HierList = ListCategory; return(PartialView()); }