// ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IStoryArc> SearchCommon(IStoryArcSearchModel searchModel, bool requireActive)
 {
     return(Context.StoryArcs
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByNameableBaseFilters(searchModel)
            .FilterByPaging(searchModel.Paging));
 }
Exemplo n.º 2
0
        public List <IStoryArcModel> Search(IStoryArcSearchModel searchModel, bool asListing = false)
        {
            var results = StoryArcsRepository.Search(searchModel);

            return(asListing
                ? results.Select(StoryArcMapper.MapToModelListing).ToList()
                : results.Select(StoryArcMapper.MapToModelLite).ToList());
        }
 public List<IStoryArcModel> Search(IStoryArcSearchModel searchModel, bool asListing = false)
 {
     var results = StoryArcsRepository.Search(searchModel);
     return asListing
         ? results.Select(StoryArcMapper.MapToModelListing).ToList()
         : results.Select(StoryArcMapper.MapToModelLite).ToList();
 }
 public IEnumerable <IStoryArc> Search(IStoryArcSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(IStoryArcSearchModel searchModel, System.Func <IStoryArc, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }