public IActionResult GetPlaylistsForUser(Guid userId) { if (!_sprotifyRepository.UserExists(userId)) { return(NotFound()); } var playlists = _sprotifyRepository.GetPlaylistsFromUser(userId); return(Ok(Mapper.Map <IEnumerable <Playlist> >(playlists))); }