private IQueryable <T> ApplySpecification(ISpecification <T> spec) { return(SpecificationEvaluator <T> .GetQueryable(_moniturlDbContext.Set <T>().AsQueryable(), spec)); }
private IQueryable <T> ApplySpecification(ISpecification <T> specification) { var queryable = _context.Set <T>().AsQueryable(); return(SpecificationEvaluator <T> .GetQueryable(queryable, specification)); }