Exemple #1
0
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable <ISeries> SearchCommon(ISeriesSearchModel searchModel, bool requireActive)
 {
     return(Context.Series
            .FilterByBaseFilters(searchModel, requireActive)
            .FilterByNameableBaseFilters(searchModel)
            .FilterByPaging(searchModel.Paging));
 }
 // ReSharper disable once ReturnTypeCanBeEnumerable.Local
 // ReSharper disable once SuggestBaseTypeForParameter
 private IQueryable<ISeries> SearchCommon(ISeriesSearchModel searchModel, bool requireActive)
 {
     return Context.Series
         .FilterByBaseFilters(searchModel, requireActive)
         .FilterByNameableBaseFilters(searchModel)
         .FilterByPaging(searchModel.Paging);
 }
Exemple #3
0
        public List <ISeriesModel> Search(ISeriesSearchModel searchModel, bool asListing = false)
        {
            var results = SeriesRepository.Search(searchModel);

            return(asListing
                ? results.Select(SeriesMapper.MapToModelListing).ToList()
                : results.Select(SeriesMapper.MapToModelLite).ToList());
        }
Exemple #4
0
 public IEnumerable <ISeries> Search(ISeriesSearchModel searchModel, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive));
 }
Exemple #5
0
 public IEnumerable <dynamic> Search(ISeriesSearchModel searchModel, System.Func <ISeries, dynamic> selectStatement, bool requireActive = true)
 {
     return(SearchCommon(searchModel, requireActive)
            .Select(selectStatement));
 }
 public IEnumerable<ISeries> Search(ISeriesSearchModel searchModel, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive);
 }
 public IEnumerable<dynamic> Search(ISeriesSearchModel searchModel, System.Func<ISeries, dynamic> selectStatement, bool requireActive = true)
 {
     return SearchCommon(searchModel, requireActive)
         .Select(selectStatement);
 }
 public List<ISeriesModel> Search(ISeriesSearchModel searchModel, bool asListing = false)
 {
     var results = SeriesRepository.Search(searchModel);
     return asListing
         ? results.Select(SeriesMapper.MapToModelListing).ToList()
         : results.Select(SeriesMapper.MapToModelLite).ToList();
 }