public ActionResult RenderSlideTop() { SliderDa dataAccess = new SliderDa(); var listSlideTop = dataAccess.getListSlideView(Constant.SlideType.Top); return(PartialView(listSlideTop)); }
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()); }