// ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IEpisodeAlias> SearchCommon(IEpisodeAliasSearchModel searchModel, bool requireActive)
 {
     return Context.EpisodeAliases
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByNameableBaseFilters(searchModel)
         .FilterByPaging(searchModel.Paging);
 }
Ejemplo n.º 2
0
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IEpisodeAlias> SearchCommon(IEpisodeAliasSearchModel searchModel, bool requireActive)
 {
     return(Context.EpisodeAliases
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByNameableBaseFilters(searchModel)
            .FilterByPaging(searchModel.Paging));
 }
        public List <IEpisodeAliasModel> Search(IEpisodeAliasSearchModel searchModel, bool asListing = false)
        {
            var results = EpisodeAliasesRepository.Search(searchModel);

            return(asListing
                ? results.Select(EpisodeAliasMapper.MapToModelListing).ToList()
                : results.Select(EpisodeAliasMapper.MapToModelLite).ToList());
        }
 public IEnumerable<IEpisodeAlias> Search(IEpisodeAliasSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IEpisodeAliasSearchModel searchModel, System.Func<IEpisodeAlias, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
 public List<IEpisodeAliasModel> Search(IEpisodeAliasSearchModel searchModel, bool asListing = false)
 {
     var results = EpisodeAliasesRepository.Search(searchModel);
     return asListing
         ? results.Select(EpisodeAliasMapper.MapToModelListing).ToList()
         : results.Select(EpisodeAliasMapper.MapToModelLite).ToList();
 }
Ejemplo n.º 7
0
 public IEnumerable <IEpisodeAlias> Search(IEpisodeAliasSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
Ejemplo n.º 8
0
 public IEnumerable <dynamic> Search(IEpisodeAliasSearchModel searchModel, System.Func <IEpisodeAlias, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }