public List <IObjectVolumeModel> Search(IObjectVolumeSearchModel searchModel, bool asListing = false)
        {
            var results = ObjectVolumesRepository.Search(searchModel);

            return(asListing
                ? results.Select(ObjectVolumeMapper.MapToModelListing).ToList()
                : results.Select(ObjectVolumeMapper.MapToModelLite).ToList());
        }
 public IEnumerable<IObjectVolume> Search(IObjectVolumeSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IObjectVolume> SearchCommon(IObjectVolumeSearchModel searchModel, bool requireActive)
 {
     return Context.ObjectVolumes
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<dynamic> Search(IObjectVolumeSearchModel searchModel, System.Func<IObjectVolume, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
Пример #5
0
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IObjectVolume> SearchCommon(IObjectVolumeSearchModel searchModel, bool requireActive)
 {
     return(Context.ObjectVolumes
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
Пример #6
0
 public IEnumerable <IObjectVolume> Search(IObjectVolumeSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
Пример #7
0
 public IEnumerable <dynamic> Search(IObjectVolumeSearchModel searchModel, System.Func <IObjectVolume, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 public List<IObjectVolumeModel> Search(IObjectVolumeSearchModel searchModel, bool asListing = false)
 {
     var results = ObjectVolumesRepository.Search(searchModel);
     return asListing
         ? results.Select(ObjectVolumeMapper.MapToModelListing).ToList()
         : results.Select(ObjectVolumeMapper.MapToModelLite).ToList();
 }