public List <IObjectMovieModel> Search(IObjectMovieSearchModel searchModel, bool asListing = false) { var results = ObjectMoviesRepository.Search(searchModel); return(asListing ? results.Select(ObjectMovieMapper.MapToModelListing).ToList() : results.Select(ObjectMovieMapper.MapToModelLite).ToList()); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable<IObjectMovie> SearchCommon(IObjectMovieSearchModel searchModel, bool requireActive) { return Context.ObjectMovies .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging); }
public IEnumerable<IObjectMovie> Search(IObjectMovieSearchModel searchModel, bool requireActive = true) { return SearchCommon(searchModel, requireActive); }
public IEnumerable<dynamic> Search(IObjectMovieSearchModel searchModel, System.Func<IObjectMovie, dynamic> selectStatement, bool requireActive = true) { return SearchCommon(searchModel, requireActive) .Select(selectStatement); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable <IObjectMovie> SearchCommon(IObjectMovieSearchModel searchModel, bool requireActive) { return(Context.ObjectMovies .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging)); }
public IEnumerable <IObjectMovie> Search(IObjectMovieSearchModel searchModel, bool requireActive = true) { return(SearchCommon(searchModel, requireActive)); }
public IEnumerable <dynamic> Search(IObjectMovieSearchModel searchModel, System.Func <IObjectMovie, dynamic> selectStatement, bool requireActive = true) { return(SearchCommon(searchModel, requireActive) .Select(selectStatement)); }
public List<IObjectMovieModel> Search(IObjectMovieSearchModel searchModel, bool asListing = false) { var results = ObjectMoviesRepository.Search(searchModel); return asListing ? results.Select(ObjectMovieMapper.MapToModelListing).ToList() : results.Select(ObjectMovieMapper.MapToModelLite).ToList(); }