// GET: SanPham public ActionResult SanPham(long MaDanhMuc) { var danhmuc = new DanhMucF().DanhMucSP(MaDanhMuc); ViewBag.SanPham = new DanhMucF().ListAllSP(danhmuc.MaDanhMuc); return(View(MaDanhMuc)); }
public ActionResult Create() { var dm = new DanhMucF().DanhMUcs.Where(p => p.TenDM != null); ViewBag.MaDM = new SelectList(dm, "MaDM", "TenDM", null); return(View()); }
public PartialViewResult DanhMuc() { var model = new DanhMucF().ListAll(); return(PartialView(model)); }
// // GET: /Category/ public ActionResult Index() { var model = new DanhMucF().DSDanhMuc.ToList(); return(View(model)); }
public ActionResult Menu() { var model = new DanhMucF().DanhMUcs; return(PartialView("menuDM", model)); }
public ActionResult MenuCategory() { var model = new DanhMucF().DSDanhMuc.ToList(); return(PartialView(model)); }