public void GetPlaylistsByUser() { playlists = playlistRepo.GetAllByUser(AuthenticationService.LoggedUser.ID); playlists.AddRange(playlistRepo.GetSharedPlaylists(AuthenticationService.LoggedUser.ID)); foreach (var item in playlists) { if (item.userID == AuthenticationService.LoggedUser.ID) { { Console.WriteLine("Playlist ID:" + item.ID + " Playlist's name: " + item.Name + Environment.NewLine); } } } }