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