public ActionResult HotProduct() { AdminProductListModel model = new AdminProductListModel(); model.SanPhams = DaPhongThuy.SanPhams.Where(x => x.SPHot == true && x.TrangThai == true).ToList(); return(View(model)); }
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)); }
public ActionResult Index() { AdminProductListModel model = new AdminProductListModel(); model.DanhMucSanPhams = DaPhongThuy.DanhMucSanPhams.Where(x => x.TrangThai == true) .OrderBy(x => x.ThuTuHienThi) .ToList(); return(View(model)); }