public List <ILocationStoryArcModel> Search(ILocationStoryArcSearchModel searchModel, bool asListing = false) { var results = LocationStoryArcsRepository.Search(searchModel); return(asListing ? results.Select(LocationStoryArcMapper.MapToModelListing).ToList() : results.Select(LocationStoryArcMapper.MapToModelLite).ToList()); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable<ILocationStoryArc> SearchCommon(ILocationStoryArcSearchModel searchModel, bool requireActive) { return Context.LocationStoryArcs .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging); }
public IEnumerable<ILocationStoryArc> Search(ILocationStoryArcSearchModel searchModel, bool requireActive = true) { return SearchCommon(searchModel, requireActive); }
public IEnumerable<dynamic> Search(ILocationStoryArcSearchModel searchModel, System.Func<ILocationStoryArc, dynamic> selectStatement, bool requireActive = true) { return SearchCommon(searchModel, requireActive) .Select(selectStatement); }
// ReSharper disable once ReturnTypeCanBeEnumerable.Local // ReSharper disable once SuggestBaseTypeForParameter private IQueryable <ILocationStoryArc> SearchCommon(ILocationStoryArcSearchModel searchModel, bool requireActive) { return(Context.LocationStoryArcs .FilterByBaseFilters(searchModel, requireActive) .FilterByPaging(searchModel.Paging)); }
public IEnumerable <ILocationStoryArc> Search(ILocationStoryArcSearchModel searchModel, bool requireActive = true) { return(SearchCommon(searchModel, requireActive)); }
public IEnumerable <dynamic> Search(ILocationStoryArcSearchModel searchModel, System.Func <ILocationStoryArc, dynamic> selectStatement, bool requireActive = true) { return(SearchCommon(searchModel, requireActive) .Select(selectStatement)); }