예제 #1
0
        public async Task <ActionResult> Index([FromRoute] int albumId)
        {
            IEnumerable <PhotoEntity> photoEntities = photosService.GetPhotosByAlbumId(albumId);
            IEnumerable <PhotoModel>  photos        = mapper.Map <IEnumerable <PhotoModel> >(photoEntities);

            return(View(photos));
        }
예제 #2
0
        public async Task <IActionResult> Photos(int Id)
        {
            var photos = await _photosService.GetPhotosByAlbumId(Id);

            return(View(photos));
        }