// ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<ICharacterAlias> SearchCommon(ICharacterAliasSearchModel searchModel, bool requireActive)
 {
     return Context.CharacterAliases
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByNameableBaseFilters(searchModel)
         .FilterByPaging(searchModel.Paging);
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <ICharacterAlias> SearchCommon(ICharacterAliasSearchModel searchModel, bool requireActive)
 {
     return(Context.CharacterAliases
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByNameableBaseFilters(searchModel)
            .FilterByPaging(searchModel.Paging));
 }
        public List <ICharacterAliasModel> Search(ICharacterAliasSearchModel searchModel, bool asListing = false)
        {
            var results = CharacterAliasesRepository.Search(searchModel);

            return(asListing
                ? results.Select(CharacterAliasMapper.MapToModelListing).ToList()
                : results.Select(CharacterAliasMapper.MapToModelLite).ToList());
        }
 public List<ICharacterAliasModel> Search(ICharacterAliasSearchModel searchModel, bool asListing = false)
 {
     var results = CharacterAliasesRepository.Search(searchModel);
     return asListing
         ? results.Select(CharacterAliasMapper.MapToModelListing).ToList()
         : results.Select(CharacterAliasMapper.MapToModelLite).ToList();
 }
 public IEnumerable <ICharacterAlias> Search(ICharacterAliasSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(ICharacterAliasSearchModel searchModel, System.Func <ICharacterAlias, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 public IEnumerable<ICharacterAlias> Search(ICharacterAliasSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(ICharacterAliasSearchModel searchModel, System.Func<ICharacterAlias, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }