// GET: SanPham
        public ActionResult SanPham(long MaDanhMuc)
        {
            var danhmuc = new DanhMucF().DanhMucSP(MaDanhMuc);

            ViewBag.SanPham = new DanhMucF().ListAllSP(danhmuc.MaDanhMuc);
            return(View(MaDanhMuc));
        }
示例#2
0
        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));
        }
示例#4
0
        //
        // GET: /Category/

        public ActionResult Index()
        {
            var model = new DanhMucF().DSDanhMuc.ToList();

            return(View(model));
        }
示例#5
0
        public ActionResult Menu()
        {
            var model = new DanhMucF().DanhMUcs;

            return(PartialView("menuDM", model));
        }
示例#6
0
        public ActionResult MenuCategory()
        {
            var model = new DanhMucF().DSDanhMuc.ToList();

            return(PartialView(model));
        }