public List <IConceptVolumeModel> Search(IConceptVolumeSearchModel searchModel, bool asListing = false) { var results = ConceptVolumesRepository.Search(searchModel); return(asListing ? results.Select(ConceptVolumeMapper.MapToModelListing).ToList() : results.Select(ConceptVolumeMapper.MapToModelLite).ToList()); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable <IConceptVolume> SearchCommon(IConceptVolumeSearchModel searchModel, bool requireActive) { return(Context.ConceptVolumes .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging)); }
public IEnumerable <IConceptVolume> Search(IConceptVolumeSearchModel searchModel, bool requireActive = true) { return(SearchCommon(searchModel, requireActive)); }
public IEnumerable <dynamic> Search(IConceptVolumeSearchModel searchModel, System.Func <IConceptVolume, dynamic> selectStatement, bool requireActive = true) { return(SearchCommon(searchModel, requireActive) .Select(selectStatement)); }
public List<IConceptVolumeModel> Search(IConceptVolumeSearchModel searchModel, bool asListing = false) { var results = ConceptVolumesRepository.Search(searchModel); return asListing ? results.Select(ConceptVolumeMapper.MapToModelListing).ToList() : results.Select(ConceptVolumeMapper.MapToModelLite).ToList(); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable<IConceptVolume> SearchCommon(IConceptVolumeSearchModel searchModel, bool requireActive) { return Context.ConceptVolumes .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging); }
public IEnumerable<IConceptVolume> Search(IConceptVolumeSearchModel searchModel, bool requireActive = true) { return SearchCommon(searchModel, requireActive); }
public IEnumerable<dynamic> Search(IConceptVolumeSearchModel searchModel, System.Func<IConceptVolume, dynamic> selectStatement, bool requireActive = true) { return SearchCommon(searchModel, requireActive) .Select(selectStatement); }