// 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); }
// 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(); }
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)); }