Ejemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            var collectionList = await artDbRepo.GetCollectionsWithArt();

            var tagList = await artDbRepo.GetTags();

            var homeViewModel = new HomeViewModel(collectionList, collectionList, tagList);

            return(View(homeViewModel));
        }
        public async Task <IActionResult> Index3d(int id)
        {
            var exhibitions = await artDbRepo.GetCollection(id);

            var exhibitionsForRoom = await artDbRepo.GetCollectionsWithArt();

            var artist = await artDbRepo.GetArtistByCollection(exhibitions);

            ExhibitionsViewModel exhibitionsViewModel = new ExhibitionsViewModel(exhibitions, exhibitionsForRoom, artist);

            return(View(exhibitionsViewModel));
        }