示例#1
0
        public IActionResult GetSongsForPlaylist(Guid playlistId)
        {
            if (!_sprotifyRepository.PlaylistExists(playlistId))
            {
                return(NotFound());
            }

            var songs = _sprotifyRepository.GetSongsFromPlaylist(playlistId);

            return(Ok(Mapper.Map <IEnumerable <Song> >(songs)));
        }