Beispiel #1
0
        public ActionResult RenderSlideTop()
        {
            SliderDa dataAccess = new SliderDa();

            var listSlideTop = dataAccess.getListSlideView(Constant.SlideType.Top);

            return(PartialView(listSlideTop));
        }
Beispiel #2
0
        public ActionResult Index()
        {
            if (ModelState.IsValid)
            {
                using (ProductService service = new ProductService())
                {
                    var      dataList   = service.SearchProductList();
                    SliderDa dataAccess = new SliderDa();

                    var listSlideTop = dataAccess.getListSlideView(Constant.SlideType.Top);
                    ViewBag.listSlideTop = listSlideTop;
                    return(View(dataList));
                }
            }
            return(View());
        }