public ActionResult Index(GalleryForSlideshow galleryForSlideshow) { if (ModelState.IsValid) { Gallery gallery = galleriesRepository.Galleries.Find(galleryForSlideshow.SelectedId); FolderResolver folderResolver = new FolderResolver(gallery.Path); Slideshow slideshow = new Slideshow(); slideshow.SetImagesForSlideshow(folderResolver.ImagesDirectory); return RedirectToAction("Index", "Manager"); } return View("Index"); }
private string[] GetSlides() { Slideshow slideshow = new Slideshow(); return slideshow.GetSlidesUris(); }