public override Expression <Func <Doctor, bool> > ToExpression() { var relatedId = searchHintBase.RelatedIdPredicate(); var searchQuery = searchHintBase.SearchQuery(); return(x => searchQuery(x.Name) && relatedId(x.Category.Id)); }
public override Expression <Func <RelativeofBeatyandhealthy, bool> > ToExpression() { var relatedId = searchHintBase.RelatedIdPredicate(); return(x => searchHintBase.ApplySearch(x.Address, x.CreateDate) && relatedId(x.BeatyandHealthy.Id)); }