public UnitOfWork(MediaContext context) { this.context = context ?? throw new ArgumentNullException("Context can not be null."); }
public Repository(MediaContext context) { this.context = context ?? throw new ArgumentNullException("Context can not be null."); dbSet = context.Set <T>(); }