Example #1
0
        public async Task <Playlist> GetByIdAsync(int id, CancellationToken ct = default)
        {
            var playlist = await _context.GetPlaylistAsync(id);

            return(playlist.First());
        }
Example #2
0
 public async Task <Playlist> GetByIdAsync(int id, CancellationToken ct = default(CancellationToken))
 {
     return(_context.GetPlaylistAsync(id).Result.First());
 }