Beispiel #1
0
        public async Task <IActionResult> Rename(Guid id)
        {
            Album album = await _repository.GetAlbumAsync(id);

            RenameAlbumViewModel model = new RenameAlbumViewModel(id, album.Name);

            return(View(model));
        }
Beispiel #2
0
        public async Task <IActionResult> ShowAlbumPhotos(Guid id)
        {
            Album album = await _repository.GetAlbumAsync(id);

            AlbumViewModel model = new AlbumViewModel(album.Id, album.DateCreated, album.Owner, album.Name);

            model.Photos = await _repository.GetPhotosAsync(model.Id);

            return(View("OtherUserAlbum", model));
        }