예제 #1
0
        public ActionResult Edit(int id)
        {
            Gallery       gallery        = galleriesRepository.Galleries.Find(id);
            ImagesBrowser imagesLocation = new ImagesBrowser(gallery.Path);

            GalleryEdit galleryEdit = new GalleryEdit {
                FileNames = imagesLocation.GetImagesFileNames()
            };

            galleryEdit.InjectFrom(gallery);

            return(View(galleryEdit));
        }