public List <IEpisodeTeamFirstAppearanceModel> Search(IEpisodeTeamFirstAppearanceSearchModel searchModel, bool asListing = false)
        {
            var results = EpisodeTeamFirstAppearancesRepository.Search(searchModel);

            return(asListing
                ? results.Select(EpisodeTeamFirstAppearanceMapper.MapToModelListing).ToList()
                : results.Select(EpisodeTeamFirstAppearanceMapper.MapToModelLite).ToList());
        }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IEpisodeTeamFirstAppearance> SearchCommon(IEpisodeTeamFirstAppearanceSearchModel searchModel, bool requireActive)
 {
     return Context.EpisodeTeamFirstAppearances
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<IEpisodeTeamFirstAppearance> Search(IEpisodeTeamFirstAppearanceSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IEpisodeTeamFirstAppearanceSearchModel searchModel, System.Func<IEpisodeTeamFirstAppearance, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
 public List<IEpisodeTeamFirstAppearanceModel> Search(IEpisodeTeamFirstAppearanceSearchModel searchModel, bool asListing = false)
 {
     var results = EpisodeTeamFirstAppearancesRepository.Search(searchModel);
     return asListing
         ? results.Select(EpisodeTeamFirstAppearanceMapper.MapToModelListing).ToList()
         : results.Select(EpisodeTeamFirstAppearanceMapper.MapToModelLite).ToList();
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IEpisodeTeamFirstAppearance> SearchCommon(IEpisodeTeamFirstAppearanceSearchModel searchModel, bool requireActive)
 {
     return(Context.EpisodeTeamFirstAppearances
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
 public IEnumerable <IEpisodeTeamFirstAppearance> Search(IEpisodeTeamFirstAppearanceSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(IEpisodeTeamFirstAppearanceSearchModel searchModel, System.Func <IEpisodeTeamFirstAppearance, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }