public async void LoadData(string id) { IsLoading = true; try { if (id.StartsWith("name.")) { var name = id.Replace("name.", string.Empty); var spotify = await App.Locator.Spotify.SearchItems(name, SearchType.ARTIST, 1); if (spotify != null && spotify.Artists != null && spotify.Artists.Items.Count > 0) { id = spotify.Artists.Items[0].Id; } else { // not found on spotify, go to lastfm App.Navigator.GoTo <ArtistPage, PageTransition>(name, false); return; } } Artist = await _service.GetArtistAsync(id); } catch (NetworkException e) { _notificationManager.ShowError("AppNetworkIssue".FromLanguageResource()); } try { TopTracks = await _service.GetArtistTracksAsync(id); } catch (Exception e) { _notificationManager.ShowError("AppNetworkIssue".FromLanguageResource()); } try { TopAlbums = await _service.GetArtistAlbumsAsync(id); } catch (Exception e) { _notificationManager.ShowError("AppNetworkIssue".FromLanguageResource()); } IsLoading = false; }