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(); }
// 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)); }
// 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); }