public ActionResult Index() { var photos = new List <GalleryPhotoViewModel>(); photos.MapPhotos(photoRepository.GetItems().ToList()); return(View(photos)); }