public List <TEntity> GetAll(Expression <Func <TEntity, bool> > filter = null) { if (filter != null) { return(_context.Set <TEntity>().Where(filter).ToList()); } else { return(_context.Set <TEntity>().ToList()); } }
public List <TEntity> GetAll(Expression <Func <TEntity, bool> > filter = null) { if (filter != null) { return(_context.Set <TEntity>().Where(filter).ToList()); } else { return(_context.Set <TEntity>().ToList()); } }