コード例 #1
0
        public List <IEpisodeConceptModel> Search(IEpisodeConceptSearchModel searchModel, bool asListing = false)
        {
            var results = EpisodeConceptsRepository.Search(searchModel);

            return(asListing
                ? results.Select(EpisodeConceptMapper.MapToModelListing).ToList()
                : results.Select(EpisodeConceptMapper.MapToModelLite).ToList());
        }
 public List<IEpisodeConceptModel> Search(IEpisodeConceptSearchModel searchModel, bool asListing = false)
 {
     var results = EpisodeConceptsRepository.Search(searchModel);
     return asListing
         ? results.Select(EpisodeConceptMapper.MapToModelListing).ToList()
         : results.Select(EpisodeConceptMapper.MapToModelLite).ToList();
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IEpisodeConcept> SearchCommon(IEpisodeConceptSearchModel searchModel, bool requireActive)
 {
     return Context.EpisodeConcepts
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<IEpisodeConcept> Search(IEpisodeConceptSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IEpisodeConceptSearchModel searchModel, System.Func<IEpisodeConcept, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
コード例 #6
0
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IEpisodeConcept> SearchCommon(IEpisodeConceptSearchModel searchModel, bool requireActive)
 {
     return(Context.EpisodeConcepts
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
コード例 #7
0
 public IEnumerable <IEpisodeConcept> Search(IEpisodeConceptSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
コード例 #8
0
 public IEnumerable <dynamic> Search(IEpisodeConceptSearchModel searchModel, System.Func <IEpisodeConcept, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }