예제 #1
0
 public ActionResult GalleryImages(int id)
 {
     IGalleryDAC dac = new GalleryDAC();
     Gallery gallery = dac.GetGallery(id);
     ViewBag.GalleryTitle = gallery.Name;
     IImageDAC imageDAC = new ImageDAC();
     var images = imageDAC.Get(id);
     return View(images);
 }
예제 #2
0
 // GET: Admin666/Image
 public ActionResult Index(int galleryID)
 {
     IImageDAC dac = new ImageDAC();
     IGalleryDAC galleryDAC = new GalleryDAC();
     var gallery = galleryDAC.GetGallery(galleryID);
     ViewBag.Gallery = gallery.Name;
     ViewBag.GalleryID = gallery.GalleryID;
     ViewBag.DefaultImage = gallery.DisplayImage;
     var images = dac.Get(galleryID);
     return View(images);
 }
예제 #3
0
        public ActionResult GalleryImages(int id)
        {
            IGalleryDAC dac     = new GalleryDAC();
            Gallery     gallery = dac.GetGallery(id);

            ViewBag.GalleryTitle = gallery.Name;
            IImageDAC imageDAC = new ImageDAC();
            var       images   = imageDAC.Get(id);

            return(View(images));
        }
예제 #4
0
        // GET: Admin666/Image
        public ActionResult Index(int galleryID)
        {
            IImageDAC   dac        = new ImageDAC();
            IGalleryDAC galleryDAC = new GalleryDAC();
            var         gallery    = galleryDAC.GetGallery(galleryID);

            ViewBag.Gallery      = gallery.Name;
            ViewBag.GalleryID    = gallery.GalleryID;
            ViewBag.DefaultImage = gallery.DisplayImage;
            var images = dac.Get(galleryID);

            return(View(images));
        }