// ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IStoryArcAlias> SearchCommon(IStoryArcAliasSearchModel searchModel, bool requireActive)
 {
     return(Context.StoryArcAliases
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByNameableBaseFilters(searchModel)
            .FilterByPaging(searchModel.Paging));
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IStoryArcAlias> SearchCommon(IStoryArcAliasSearchModel searchModel, bool requireActive)
 {
     return Context.StoryArcAliases
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByNameableBaseFilters(searchModel)
         .FilterByPaging(searchModel.Paging);
 }
        public List <IStoryArcAliasModel> Search(IStoryArcAliasSearchModel searchModel, bool asListing = false)
        {
            var results = StoryArcAliasesRepository.Search(searchModel);

            return(asListing
                ? results.Select(StoryArcAliasMapper.MapToModelListing).ToList()
                : results.Select(StoryArcAliasMapper.MapToModelLite).ToList());
        }
 public IEnumerable <IStoryArcAlias> Search(IStoryArcAliasSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(IStoryArcAliasSearchModel searchModel, System.Func <IStoryArcAlias, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 public List<IStoryArcAliasModel> Search(IStoryArcAliasSearchModel searchModel, bool asListing = false)
 {
     var results = StoryArcAliasesRepository.Search(searchModel);
     return asListing
         ? results.Select(StoryArcAliasMapper.MapToModelListing).ToList()
         : results.Select(StoryArcAliasMapper.MapToModelLite).ToList();
 }
 public IEnumerable<IStoryArcAlias> Search(IStoryArcAliasSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IStoryArcAliasSearchModel searchModel, System.Func<IStoryArcAlias, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }