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); }
// 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 <IObjectVolume> Search(IObjectVolumeSearchModel searchModel, bool requireActive = true) { return(SearchCommon(searchModel, requireActive)); }
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(); }