public UnitOfWork(TvShowDbContext context) { this.context = context ?? throw new ArgumentNullException(nameof(context)); }
public GenericRepository(TvShowDbContext context) { this.context = context ?? throw new ArgumentNullException(nameof(context)); dbSet = context.Set <TEntity>(); }