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

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

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

            return(View(model));
        }
Exemplo n.º 5
0
        public ActionResult Menu()
        {
            var model = new DanhMucF().DanhMUcs;

            return(PartialView("menuDM", model));
        }
Exemplo n.º 6
0
        public ActionResult MenuCategory()
        {
            var model = new DanhMucF().DSDanhMuc.ToList();

            return(PartialView(model));
        }