public ActionResult Create(GalleryViewModel model, List<HttpPostedFileBase> files) { int amount = files.Count(); GalleryViewModel t = model; return View("Create"); }
// // GET: /Gallery/Create public ActionResult Create() { GalleryViewModel Gallery = new GalleryViewModel { GalleryItemViewModels = new List<GalleryItemViewModel>() { new GalleryItemViewModel { GalleryItem = new GalleryItem { Title = "My first Item", Description = "THis is where I made my first Description" } }, new GalleryItemViewModel { GalleryItem = new GalleryItem { Title = "My second Item", Description = "And this is a video" } } } }; return View(Gallery); }