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