public List <IMovieLocationModel> Search(IMovieLocationSearchModel searchModel, bool asListing = false) { var results = MovieLocationsRepository.Search(searchModel); return(asListing ? results.Select(MovieLocationMapper.MapToModelListing).ToList() : results.Select(MovieLocationMapper.MapToModelLite).ToList()); }
public List<IMovieLocationModel> Search(IMovieLocationSearchModel searchModel, bool asListing = false) { var results = MovieLocationsRepository.Search(searchModel); return asListing ? results.Select(MovieLocationMapper.MapToModelListing).ToList() : results.Select(MovieLocationMapper.MapToModelLite).ToList(); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable <IMovieLocation> SearchCommon(IMovieLocationSearchModel searchModel, bool requireActive) { return(Context.MovieLocations .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging)); }
public IEnumerable <IMovieLocation> Search(IMovieLocationSearchModel searchModel, bool requireActive = true) { return(SearchCommon(searchModel, requireActive)); }
public IEnumerable <dynamic> Search(IMovieLocationSearchModel searchModel, System.Func <IMovieLocation, dynamic> selectStatement, bool requireActive = true) { return(SearchCommon(searchModel, requireActive) .Select(selectStatement)); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable<IMovieLocation> SearchCommon(IMovieLocationSearchModel searchModel, bool requireActive) { return Context.MovieLocations .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging); }
public IEnumerable<IMovieLocation> Search(IMovieLocationSearchModel searchModel, bool requireActive = true) { return SearchCommon(searchModel, requireActive); }
public IEnumerable<dynamic> Search(IMovieLocationSearchModel searchModel, System.Func<IMovieLocation, dynamic> selectStatement, bool requireActive = true) { return SearchCommon(searchModel, requireActive) .Select(selectStatement); }