private IQueryable <Product> ApplySpecification(ISpecifications <Product> spec) { return(SpecificationEvaluator <Product> .GetQuery(_context.Set <Product>().AsQueryable(), spec)); }
public virtual bool Any(Expression <Func <TEntity, bool> > where) { return(_context.Set <TEntity>().Any(where)); }
private ProductsApiService(eCommerceContext context) { _context = context; this.dbSet = _context.Set <Product>(); }