示例#1
0
        public async Task <IActionResult> ReadResourceVersionAsync(string type, string id, string versionId)
        {
            var response = await this.ReadResourceVersionInteractor.ExecuteAsync(
                new ReadResourceVersionRequest { ResourceId = id, ResourceType = type, VersionId = versionId });

            return(ReadResourcePresenter.Present(response, this.Request.ContentType, this.Response, SummaryType.False));
        }
示例#2
0
        public async Task <IActionResult> ReadResourceAsync(string type, string id, [FromQuery(Name = "_summary")] string summaryType)
        {
            var response = await this.ReadResourceInteractor.ExecuteAsync(new ReadResourceRequest { ResourceId = id, ResourceType = type });

            return(ReadResourcePresenter.Present(response, this.Request.ContentType, this.Response, SummaryTypeParser.Parse(summaryType)));
        }