public Task <bool> HasDraftAsync(int pageId)
        {
            var query = new DoesPageHaveDraftVersionQuery(pageId);

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
        public IContentRepositoryQueryContext <bool> HasDraft(int pageId)
        {
            var query = new DoesPageHaveDraftVersionQuery(pageId);

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }