Example #1
0
        public IEnumerable <FileSystemEntity> GetCartPromoTotal(IQueryable <FileSystemEntity> all, FileSystemEntityFilterOptions by)
        {
            IQueryable <FileSystemEntity> products = all.Where(FilterNameAndSize(by.Name, by.Length));

            return(products);
        }
Example #2
0
 public IQueryable <FileSystemEntity> FilterStartsWith(IQueryable <FileSystemEntity> all, FileSystemEntityFilterOptions by)
 {
     Result = all;
     FilterStartsWith(fileSystemEntityFilterOptions => Path.GetFileName(fileSystemEntityFilterOptions.Name), by.Name);
     return(Result);
 }
Example #3
0
 public IQueryable <FileSystemEntity> FilterSizeLessThan(IQueryable <FileSystemEntity> all, FileSystemEntityFilterOptions by)
 {
     Result = all;
     FilterSizeLessThan(fileSystemEntityFilterOptions => fileSystemEntityFilterOptions.Length, by.Length);
     return(Result);
 }
Example #4
0
 public IQueryable <FileSystemEntity> FilterContains(IQueryable <FileSystemEntity> all, FileSystemEntityFilterOptions by)
 {
     Result = all;
     FilterContains(fileSystemEntityFilterOptions => fileSystemEntityFilterOptions.Name, by.Name);
     return(Result);
 }