Ejemplo n.º 1
0
        public ActionResult Carousel()
        {
            shProductService _product = new shProductService();

            IEnumerable <shProduct> model = _product.DanhSachTopHotProduct();

            return(PartialView(model));
        }
Ejemplo n.º 2
0
        public PartialViewResult ListProductHighLight(int?page)
        {
            int pageCurrent = 1;

            if (page.HasValue)
            {
                pageCurrent = page.Value;
            }

            shProductService _product = new shProductService();

            IPagedList <shProduct> dsProduct = _product.DanhSachTopHotProduct().ToPagedList(pageCurrent, Config.PAGE_SIZE_10);

            ViewBag.ListProductHighLight = dsProduct;
            return(PartialView("ListProductHighLight", dsProduct));
        }