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