public List <IEpisodeObjectFirstAppearanceModel> Search(IEpisodeObjectFirstAppearanceSearchModel searchModel, bool asListing = false)
        {
            var results = EpisodeObjectFirstAppearancesRepository.Search(searchModel);

            return(asListing
                ? results.Select(EpisodeObjectFirstAppearanceMapper.MapToModelListing).ToList()
                : results.Select(EpisodeObjectFirstAppearanceMapper.MapToModelLite).ToList());
        }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IEpisodeObjectFirstAppearance> SearchCommon(IEpisodeObjectFirstAppearanceSearchModel searchModel, bool requireActive)
 {
     return Context.EpisodeObjectFirstAppearances
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<IEpisodeObjectFirstAppearance> Search(IEpisodeObjectFirstAppearanceSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IEpisodeObjectFirstAppearanceSearchModel searchModel, System.Func<IEpisodeObjectFirstAppearance, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
Beispiel #5
0
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IEpisodeObjectFirstAppearance> SearchCommon(IEpisodeObjectFirstAppearanceSearchModel searchModel, bool requireActive)
 {
     return(Context.EpisodeObjectFirstAppearances
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
Beispiel #6
0
 public IEnumerable <IEpisodeObjectFirstAppearance> Search(IEpisodeObjectFirstAppearanceSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
Beispiel #7
0
 public IEnumerable <dynamic> Search(IEpisodeObjectFirstAppearanceSearchModel searchModel, System.Func <IEpisodeObjectFirstAppearance, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 public List<IEpisodeObjectFirstAppearanceModel> Search(IEpisodeObjectFirstAppearanceSearchModel searchModel, bool asListing = false)
 {
     var results = EpisodeObjectFirstAppearancesRepository.Search(searchModel);
     return asListing
         ? results.Select(EpisodeObjectFirstAppearanceMapper.MapToModelListing).ToList()
         : results.Select(EpisodeObjectFirstAppearanceMapper.MapToModelLite).ToList();
 }