コード例 #1
0
        public async Task <IActionResult> Details([FromRoute] int id, [FromQuery] int page = 1)
        {
            var detailsModel = await galleryService.GetPictureInfo(id, page);

            var pictures = await GetPicturesFromFs(detailsModel.Pictures);

            return(View(new GalleryDetailsViewModel
            {
                Name = detailsModel.GalleryName,
                Photographer = detailsModel.PhotographerName,
                Pictures = pictures,
                PagingInfo = detailsModel.PagingInfo
            }));
        }