Beispiel #1
0
        public List <IStoryArcWriterModel> Search(IStoryArcWriterSearchModel searchModel, bool asListing = false)
        {
            var results = StoryArcWritersRepository.Search(searchModel);

            return(asListing
                ? results.Select(StoryArcWriterMapper.MapToModelListing).ToList()
                : results.Select(StoryArcWriterMapper.MapToModelLite).ToList());
        }
 public List<IStoryArcWriterModel> Search(IStoryArcWriterSearchModel searchModel, bool asListing = false)
 {
     var results = StoryArcWritersRepository.Search(searchModel);
     return asListing
         ? results.Select(StoryArcWriterMapper.MapToModelListing).ToList()
         : results.Select(StoryArcWriterMapper.MapToModelLite).ToList();
 }
Beispiel #3
0
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <IStoryArcWriter> SearchCommon(IStoryArcWriterSearchModel searchModel, bool requireActive)
 {
     return(Context.StoryArcWriters
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByPaging(searchModel.Paging));
 }
Beispiel #4
0
 public IEnumerable <IStoryArcWriter> Search(IStoryArcWriterSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
Beispiel #5
0
 public IEnumerable <dynamic> Search(IStoryArcWriterSearchModel searchModel, System.Func <IStoryArcWriter, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<IStoryArcWriter> SearchCommon(IStoryArcWriterSearchModel searchModel, bool requireActive)
 {
     return Context.StoryArcWriters
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByPaging(searchModel.Paging);
 }
 public IEnumerable<IStoryArcWriter> Search(IStoryArcWriterSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(IStoryArcWriterSearchModel searchModel, System.Func<IStoryArcWriter, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }