public async Task AddRangeAsync(List <Cast> cast) { Ensure.ArgumentNotNull(cast, nameof(cast)); _context.Cast.AddRange(cast); await _context.SaveChangesAsync(); }
public async Task AddRangeAsync(List <Shows> shows) { Ensure.ArgumentNotNull(shows, nameof(shows)); await _context.Shows.AddRangeAsync(shows); await _context.SaveChangesAsync(); }