예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #4
0
 public ActionResult Index()
 {
     return(View(ss.GetActive()));
 }