Esempio n. 1
0
        public ActionResult HotProduct()
        {
            AdminProductListModel model = new AdminProductListModel();

            model.SanPhams = DaPhongThuy.SanPhams.Where(x => x.SPHot == true && x.TrangThai == true).ToList();
            return(View(model));
        }
Esempio n. 2
0
        public ActionResult Index(int DanhmucId = 0, int page = 1)
        {
            AdminProductListModel model = new AdminProductListModel();

            model.SanPhams = DaPhongThuy.SanPhams.Where(x => DanhmucId == 0 && x.TrangThai == true || DanhmucId == x.CategoryProductID && x.TrangThai == true)
                             .ToList();
            return(View(model));
        }
Esempio n. 3
0
        public ActionResult Index()
        {
            AdminProductListModel model = new AdminProductListModel();

            model.DanhMucSanPhams = DaPhongThuy.DanhMucSanPhams.Where(x => x.TrangThai == true)
                                    .OrderBy(x => x.ThuTuHienThi)
                                    .ToList();
            return(View(model));
        }