public async Task <Album> GetByIdAsync(int id, CancellationToken ct = default)
        {
            var album = await _context.GetAlbumAsync(id);

            return(album.First());
        }
Exemple #2
0
 public async Task <Album> GetByIdAsync(int id, CancellationToken ct = default(CancellationToken))
 {
     return(_context.GetAlbumAsync(id).Result.First());
 }