Beispiel #1
0
        public async Task <bool> LoadTracksAsync(MusicStoreContext ctx)
        {
            Tracks = await ctx.Tracks.Where(tk => tk.AlbumId == Id).ToListAsync();

            return(true);
        }
Beispiel #2
0
        public async Task <bool> LoadArtistAsync(MusicStoreContext ctx)
        {
            Artist = await ctx.Artists.FirstOrDefaultAsync(art => art.Id == ArtistId);

            return(true);
        }