public void GoToArtist(string artistId)
        {
            var artist = Database.Main.GetObject <Artist, TempArtist>(artistId);

            if (artist is TempArtist)
            {
                var onlineId = Database.Main.Query <ArtistIds>("select * from TempArtistIds where ArtistId = ?", artistId).FirstOrDefault();
                if (onlineId == null)
                {
                    onlineId = Database.Main.Query <ArtistIds>("select * from ArtistIds where ArtistId = ?", artistId).FirstOrDefault();
                }
                artist = new OnlineArtist(artist.Name, artist.NameNorm)
                {
                    OnlineId = onlineId.Id,
                };
            }
            GoToArtist(artist);
        }
Beispiel #2
0
 public async Task <bool> AddToLibrary(OnlineArtist artist)
 {
     App.ShowNotImplmented();
     return(false);
 }