public async Task <IEnumerable <TEntity> > GetAll() { return(await _context.Set <TEntity>().ToListAsync()); }
public GenericRepository(AutoDetailContext context) { _context = context; _dbSet = _context.Set <TEntity>(); }