private async Task <bool> CheckIfShowExist(CancellationToken stoppingToken, TvMazeDbContext tvMazeDbContext,
                                                   ShowDto show)
        {
            if (await tvMazeDbContext.Set <Show>().AnyAsync(s => s.Id == show.Id, stoppingToken))
            {
                logger.LogInformation($"Show {show.Id} - {show.Name} already exists.");
                return(true);
            }

            return(false);
        }
 private static async Task AddShow(CancellationToken stoppingToken, TvMazeDbContext tvMazeDbContext, ShowDto show,
                                   IEnumerable <ActorDto> actorsToAdd)
 {
     await tvMazeDbContext.Set <Show>().AddAsync(new Show
     {
         Id         = show.Id,
         Name       = show.Name,
         ShowActors = actorsToAdd
                      .Select(actor => new ShowActor
         {
             ShowId = show.Id, ActorId = actor.Id
         }).ToList()
     }, stoppingToken);
 }