public List <ICharacterAppearedInIssueModel> Search(ICharacterAppearedInIssueSearchModel searchModel, bool asListing = false)
        {
            var results = CharacterAppearedInIssuesRepository.Search(searchModel);

            return(asListing
                ? results.Select(CharacterAppearedInIssueMapper.MapToModelListing).ToList()
                : results.Select(CharacterAppearedInIssueMapper.MapToModelLite).ToList());
        }
 public List<ICharacterAppearedInIssueModel> Search(ICharacterAppearedInIssueSearchModel searchModel, bool asListing = false)
 {
     var results = CharacterAppearedInIssuesRepository.Search(searchModel);
     return asListing
         ? results.Select(CharacterAppearedInIssueMapper.MapToModelListing).ToList()
         : results.Select(CharacterAppearedInIssueMapper.MapToModelLite).ToList();
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <ICharacterAppearedInIssue> SearchCommon(ICharacterAppearedInIssueSearchModel searchModel, bool requireActive)
 {
     return(Context.CharacterAppearedInIssues
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
 public IEnumerable <ICharacterAppearedInIssue> Search(ICharacterAppearedInIssueSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(ICharacterAppearedInIssueSearchModel searchModel, System.Func <ICharacterAppearedInIssue, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<ICharacterAppearedInIssue> SearchCommon(ICharacterAppearedInIssueSearchModel searchModel, bool requireActive)
 {
     return Context.CharacterAppearedInIssues
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<ICharacterAppearedInIssue> Search(ICharacterAppearedInIssueSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(ICharacterAppearedInIssueSearchModel searchModel, System.Func<ICharacterAppearedInIssue, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }