// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable <IPublisherAlias> SearchCommon(IPublisherAliasSearchModel searchModel, bool requireActive) { return(Context.PublisherAliases .FilterByBaseFilters(searchModel, requireActive) .FilterByNameableBaseFilters(searchModel) .FilterByPaging(searchModel.Paging)); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable<IPublisherAlias> SearchCommon(IPublisherAliasSearchModel searchModel, bool requireActive) { return Context.PublisherAliases .FilterByBaseFilters(searchModel, requireActive) .FilterByNameableBaseFilters(searchModel) .FilterByPaging(searchModel.Paging); }
public List <IPublisherAliasModel> Search(IPublisherAliasSearchModel searchModel, bool asListing = false) { var results = PublisherAliasesRepository.Search(searchModel); return(asListing ? results.Select(PublisherAliasMapper.MapToModelListing).ToList() : results.Select(PublisherAliasMapper.MapToModelLite).ToList()); }
public IEnumerable<IPublisherAlias> Search(IPublisherAliasSearchModel searchModel, bool requireActive = true) { return SearchCommon(searchModel, requireActive); }
public IEnumerable<dynamic> Search(IPublisherAliasSearchModel searchModel, System.Func<IPublisherAlias, dynamic> selectStatement, bool requireActive = true) { return SearchCommon(searchModel, requireActive) .Select(selectStatement); }
public IEnumerable <IPublisherAlias> Search(IPublisherAliasSearchModel searchModel, bool requireActive = true) { return(SearchCommon(searchModel, requireActive)); }
public IEnumerable <dynamic> Search(IPublisherAliasSearchModel searchModel, System.Func <IPublisherAlias, dynamic> selectStatement, bool requireActive = true) { return(SearchCommon(searchModel, requireActive) .Select(selectStatement)); }
public List<IPublisherAliasModel> Search(IPublisherAliasSearchModel searchModel, bool asListing = false) { var results = PublisherAliasesRepository.Search(searchModel); return asListing ? results.Select(PublisherAliasMapper.MapToModelListing).ToList() : results.Select(PublisherAliasMapper.MapToModelLite).ToList(); }