Пример #1
0
        public Task <PageBlockTypeDetails> AsDetailsAsync()
        {
            var query = new GetPageBlockTypeDetailsByIdQuery(_pageBlockTypeId);

            return(ExtendableContentRepository.ExecuteQueryAsync(query));
        }
        public Task <PageBlockTypeDetails> GetPageBlockTypeDetailsByIdAsync(int pageBlockTypeId, IExecutionContext executionContext = null)
        {
            var query = new GetPageBlockTypeDetailsByIdQuery(pageBlockTypeId);

            return(_queryExecutor.ExecuteAsync(query, executionContext));
        }
        public IContentRepositoryQueryContext <PageBlockTypeDetails> AsDetails()
        {
            var query = new GetPageBlockTypeDetailsByIdQuery(_pageBlockTypeId);

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