public List <IStoryArcIssueModel> Search(IStoryArcIssueSearchModel searchModel, bool asListing = false)
        {
            var results = StoryArcIssuesRepository.Search(searchModel);

            return(asListing
                ? results.Select(StoryArcIssueMapper.MapToModelListing).ToList()
                : results.Select(StoryArcIssueMapper.MapToModelLite).ToList());
        }
 public List<IStoryArcIssueModel> Search(IStoryArcIssueSearchModel searchModel, bool asListing = false)
 {
     var results = StoryArcIssuesRepository.Search(searchModel);
     return asListing
         ? results.Select(StoryArcIssueMapper.MapToModelListing).ToList()
         : results.Select(StoryArcIssueMapper.MapToModelLite).ToList();
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IStoryArcIssue> SearchCommon(IStoryArcIssueSearchModel searchModel, bool requireActive)
 {
     return Context.StoryArcIssues
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<IStoryArcIssue> Search(IStoryArcIssueSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IStoryArcIssueSearchModel searchModel, System.Func<IStoryArcIssue, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IStoryArcIssue> SearchCommon(IStoryArcIssueSearchModel searchModel, bool requireActive)
 {
     return(Context.StoryArcIssues
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
 public IEnumerable <IStoryArcIssue> Search(IStoryArcIssueSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
 public IEnumerable <dynamic> Search(IStoryArcIssueSearchModel searchModel, System.Func <IStoryArcIssue, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }