public async Task <MediaType> GetByIdAsync(int id, CancellationToken ct = default) { var mediaType = await _context.GetMediaTypeAsync(id); return(mediaType.First()); }
public async Task <MediaType> GetByIdAsync(int id, CancellationToken ct = default(CancellationToken)) { return(_context.GetMediaTypeAsync(id).Result.First()); }