public ActionResult Index() { var activeSlides = this.slides.All().ToList(); var linkedSlides = new LinkedSlideList(activeSlides); var model = new HomePageViewModel { Slides = linkedSlides.Slides, }; return(View(model)); }
public ActionResult Index() { var activeSlides = this.slides.All().ToList(); var linkedSlides = new LinkedSlideList(activeSlides); var model = new HomePageViewModel { Slides = linkedSlides.Slides, }; return View(model); }
// 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)); }
// 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); }