Exemple #1
0
        public async Task <IActionResult> Index(int page = 1)
        {
            ViewBag.currentPage = page;
            int totalcout = HomeSliderBLL.Cout();

            ViewBag.totalPage = TotalPage(totalcout);
            var ListHomeSlider = await HomeSliderBLL.Get(numberPerPage, page);

            //var ListBrandFilter = await BrandBLL.Get(filter: p => p.Name.Contains());
            return(View(ListHomeSlider));
        }
 public async Task <IActionResult> Index()
 {
     return(View(await HomeSliderBLL.Get()));
 }