public Task <DocumentAssetDetails> AsDetailsAsync()
        {
            var query = new GetDocumentAssetDetailsByIdQuery(_documentAssetId);

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
Пример #2
0
        public Task <DocumentAssetDetails> GetDocumentAssetDetailsByIdAsync(int documentAssetId, IExecutionContext executionContext = null)
        {
            var query = new GetDocumentAssetDetailsByIdQuery(documentAssetId);

            return(_queryExecutor.ExecuteAsync(query, executionContext));
        }
        public IContentRepositoryQueryContext <DocumentAssetDetails> AsDetails()
        {
            var query = new GetDocumentAssetDetailsByIdQuery(_documentAssetId);

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