Ejemplo n.º 1
0
        public PartialViewResult AddExistingAlbum(int artistId, int albumId)
        {
            var album = Services.Albums.GetAlbumWithAdditionalNames(albumId);
            var link = new AlbumForArtistEditContract(album);

            return PartialView("ArtistForAlbumRow", link);
        }
Ejemplo n.º 2
0
        public PartialViewResult AddNewAlbum(int artistId, string newAlbumName)
        {
            ParamIs.NotNullOrWhiteSpace(() => newAlbumName);

            var link = new AlbumForArtistEditContract(newAlbumName);

            return PartialView("ArtistForAlbumRow", link);
        }
Ejemplo n.º 3
0
        public PartialViewResult AddNewAlbum(int artistId, string newAlbumName)
        {
            ParamIs.NotNullOrWhiteSpace(() => newAlbumName);

            var link = new AlbumForArtistEditContract(newAlbumName);
            //var link = MvcApplication.Services.Albums.CreateForArtist(artistId, newAlbumName);

            return PartialView("ArtistForAlbumRow", link);
        }