public List <IMovieProducerModel> Search(IMovieProducerSearchModel searchModel, bool asListing = false) { var results = MovieProducersRepository.Search(searchModel); return(asListing ? results.Select(MovieProducerMapper.MapToModelListing).ToList() : results.Select(MovieProducerMapper.MapToModelLite).ToList()); }
public List<IMovieProducerModel> Search(IMovieProducerSearchModel searchModel, bool asListing = false) { var results = MovieProducersRepository.Search(searchModel); return asListing ? results.Select(MovieProducerMapper.MapToModelListing).ToList() : results.Select(MovieProducerMapper.MapToModelLite).ToList(); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable<IMovieProducer> SearchCommon(IMovieProducerSearchModel searchModel, bool requireActive) { return Context.MovieProducers .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging); }
public IEnumerable<IMovieProducer> Search(IMovieProducerSearchModel searchModel, bool requireActive = true) { return SearchCommon(searchModel, requireActive); }
public IEnumerable<dynamic> Search(IMovieProducerSearchModel searchModel, System.Func<IMovieProducer, dynamic> selectStatement, bool requireActive = true) { return SearchCommon(searchModel, requireActive) .Select(selectStatement); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable <IMovieProducer> SearchCommon(IMovieProducerSearchModel searchModel, bool requireActive) { return(Context.MovieProducers .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging)); }
public IEnumerable <IMovieProducer> Search(IMovieProducerSearchModel searchModel, bool requireActive = true) { return(SearchCommon(searchModel, requireActive)); }
public IEnumerable <dynamic> Search(IMovieProducerSearchModel searchModel, System.Func <IMovieProducer, dynamic> selectStatement, bool requireActive = true) { return(SearchCommon(searchModel, requireActive) .Select(selectStatement)); }