示例#1
0
        public async Task <MediaType> GetByIdAsync(int id, CancellationToken ct = default)
        {
            var mediaType = await _context.GetMediaTypeAsync(id);

            return(mediaType.First());
        }
示例#2
0
 public async Task <MediaType> GetByIdAsync(int id, CancellationToken ct = default(CancellationToken))
 {
     return(_context.GetMediaTypeAsync(id).Result.First());
 }