Exemple #1
0
        public async Task <IActionResult> GetTree()
        {
            var query   = new GetPageDirectoryTreeQuery();
            var results = await _queryExecutor.ExecuteAsync(query);

            return(_apiResponseHelper.SimpleQueryResponse(this, results));
        }
        public async Task <JsonResult> GetTree()
        {
            var query = new GetPageDirectoryTreeQuery();

            return(await _apiResponseHelper.RunQueryAsync(query));
        }
        public IContentRepositoryQueryContext <PageDirectoryNode> AsTree()
        {
            var query = new GetPageDirectoryTreeQuery();

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }
Exemple #4
0
        public Task <PageDirectoryNode> AsTreeAsync()
        {
            var query = new GetPageDirectoryTreeQuery();

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }