예제 #1
0
        public async Task AddRangeAsync(List <Cast> cast)
        {
            Ensure.ArgumentNotNull(cast, nameof(cast));

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

            await _context.Shows.AddRangeAsync(shows);

            await _context.SaveChangesAsync();
        }