public Repository(NhanSuTCDContext context) { if (context != null) { this.context = context; this.DbSet = context.Set <T>(); } else { throw new ArgumentNullException("DbContext"); } }
public UnitOfWork() { context = new NhanSuTCDContext(); }