public ActionResult Index() { List <Product> productList = _productService.GetActive().ToList(); ViewBag.RandomProducts = (from p in productList orderby Guid.NewGuid() select p).Take(9).ToList(); List <Slider> model = _sliderService.GetActive(); return(View(model)); }
public ActionResult SliderList() { List <Slider> model = _sliderService.GetActive(); return(View(model)); }
public ActionResult List() { List <Slider> Sliders = _SliderService.GetActive().Take(12).OrderByDescending(x => x.AddDate).ToList(); return(View(Sliders)); }
public ActionResult Index() { return(View(ss.GetActive())); }