public GenericRepository(FinalProjectDbContext context) { _context = context; _dbSet = context.Set <TEntity>(); }
//GetAll public List <T> GetAll() => Context.Set <T>().ToList();
public GenericRepository(FinalProjectDbContext context) { _context = context; _dbSet = context.Set <TEntity>(); }
//GetAll public List <T> GetAll() => Context.Set <T>().ToList();