public UnitOfWork(SampleContext sampleContext) { _context = sampleContext; }
public SampleRepository(SampleContext context) { _context = context; _dbSet = context.Set <T>(); }