コード例 #1
0
        public ArtistWithTracksDto Get(long albumId)
        {
            if (albumId <= 0)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }

            var artistWithAlbums = _albumService.GetByIdWithTracks(albumId);

            return(ArtistDtoConvertor.AlbumModelWithTracksToDto(artistWithAlbums));
        }
コード例 #2
0
        public ArtistWithAlbumsDto Get(long artistId)
        {
            if (artistId <= 0)
            {
                throw new HttpResponseException(HttpStatusCode.BadRequest);
            }

            var artistWithAlbums = _artistService.GetByIdWithAlbums(artistId);
            
            return ArtistDtoConvertor.ArtistModelWithAlbumsToDto(artistWithAlbums); 
        }