public GenericRepository(PangathonContext context) { _context = context; _dbSet = context.Set <TEntity>(); }
public UnitOfWork(PangathonContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }