コード例 #1
0
        public ActionResult Index()
        {
            var activeSlides = this.slides.All().ToList();
            var linkedSlides = new LinkedSlideList(activeSlides);

            var model = new HomePageViewModel
            {
                Slides = linkedSlides.Slides,
            };

            return(View(model));
        }
コード例 #2
0
        public ActionResult Index()
        {
            var activeSlides = this.slides.All().ToList();
            var linkedSlides = new LinkedSlideList(activeSlides);

            var model = new HomePageViewModel
            {
                Slides = linkedSlides.Slides,
            };

            return View(model);
        }
コード例 #3
0
        // GET: Admin/Home
        public ActionResult Index()
        {
            var allWithDeleted = this.slides.AllWithDeleted().ToList();

            var activeSlides  = allWithDeleted.Where(s => !s.IsDeleted).ToList();
            var deletedSlides = allWithDeleted.Where(s => s.IsDeleted).ToList();

            var linkedSlides = new LinkedSlideList(activeSlides);

            var model = new HomePageViewModel()
            {
                Slides        = linkedSlides.Slides,
                DeletedSlides = deletedSlides,
            };

            return(View(model));
        }
コード例 #4
0
        // GET: Admin/Home
        public ActionResult Index()
        {
            var allWithDeleted = this.slides.AllWithDeleted().ToList();

            var activeSlides = allWithDeleted.Where(s => !s.IsDeleted).ToList();
            var deletedSlides = allWithDeleted.Where(s => s.IsDeleted).ToList();

            var linkedSlides = new LinkedSlideList(activeSlides);

            var model = new HomePageViewModel()
            {
                Slides = linkedSlides.Slides,
                DeletedSlides = deletedSlides,
            };

            return View(model);
        }