public ArtistWithTracksDto Get(long albumId) { if (albumId <= 0) { throw new HttpResponseException(HttpStatusCode.BadRequest); } var artistWithAlbums = _albumService.GetByIdWithTracks(albumId); return(ArtistDtoConvertor.AlbumModelWithTracksToDto(artistWithAlbums)); }
public ArtistWithAlbumsDto Get(long artistId) { if (artistId <= 0) { throw new HttpResponseException(HttpStatusCode.BadRequest); } var artistWithAlbums = _artistService.GetByIdWithAlbums(artistId); return ArtistDtoConvertor.ArtistModelWithAlbumsToDto(artistWithAlbums); }