public List <IEpisodeTeamModel> Search(IEpisodeTeamSearchModel searchModel, bool asListing = false)
        {
            var results = EpisodeTeamsRepository.Search(searchModel);

            return(asListing
                ? results.Select(EpisodeTeamMapper.MapToModelListing).ToList()
                : results.Select(EpisodeTeamMapper.MapToModelLite).ToList());
        }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IEpisodeTeam> SearchCommon(IEpisodeTeamSearchModel searchModel, bool requireActive)
 {
     return(Context.EpisodeTeams
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
 public IEnumerable <IEpisodeTeam> Search(IEpisodeTeamSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(IEpisodeTeamSearchModel searchModel, System.Func <IEpisodeTeam, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IEpisodeTeam> SearchCommon(IEpisodeTeamSearchModel searchModel, bool requireActive)
 {
     return Context.EpisodeTeams
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<IEpisodeTeam> Search(IEpisodeTeamSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IEpisodeTeamSearchModel searchModel, System.Func<IEpisodeTeam, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }