private async Task LoadPlaylists() { if (Playlists != null && Playlists.Count > 0) { Playlists.Clear(); } var playlists = await playlistRepository.GetAllPlaylistAsync(); foreach (var playlist in playlists) { Playlists.Add(new PlaylistViewModel(playlist)); } }