private IQueryable <T> ApplySpecification(ISpecification <T> spec) { var evaluator = new SpecificationEvaluator <T>(); return(evaluator.GetQuery(_context.Set <T>().AsQueryable(), spec)); }
private IQueryable <T> ApplySpecification(ISpecification <T> spec) { return(SpecificationEvaluator <T> .GetQuery(_context.Set <T>().AsQueryable(), spec)); }