public List <Consumer> Query(Func <QueryDescriptor <Consumer>, QueryDescriptor <Consumer> > container) { QueryDescriptor <Consumer> q = container(QueryDescriptorBuilder.Build <Consumer>()); return(_consumerRepository.Query(q)?.ToList()); }
public List <Consumer> Query(Func <QueryDescriptor <Consumer>, QueryDescriptor <Consumer> > container) { QueryDescriptor <Consumer> q = container(QueryDescriptorBuilder.Build <Consumer>()); return(_consumerRepository.Query(q)?.ToList()); }