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