Exemple #1
0
        public async Task <ActionResult> ListPhotos(string countryKey, string cityKey, string albumKey)
        {
            var album = await _travelService.GetAlbum(countryKey, cityKey, albumKey);

            if (album == null)
            {
                return(NotFound());
            }

            SetTitle($"world traveler | {album.CountryName.ToLower()} | {album.CityName.ToLower()} | {album.AlbumName.ToLower()}");
            SetKeywords(album.AlbumName, album.CityName, album.CountryName);
            SetDescription($"Pictures of {album.AlbumName} in {album.CityName}, {album.CountryName}.  {album.Description}");

            var response = new ListPhotosResponse(album);

            return(View(response));
        }