コード例 #1
0
        private async Task <IActionResult> SearchResourcesAsync(string type)
        {
            var response = await this.SearchResourcesInteractor.ExecuteAsync(
                new SearchResourcesRequest
            {
                ResourceType = type,
                Parameters   = this.Request.QueryString.HasValue ? this.Request.QueryString.Value.Substring(1) : string.Empty
            });

            return(SearchResourcesPresenter.Present(response, this.Response, this.Request.ContentType));
        }
コード例 #2
0
        public async Task <IActionResult> ReadResourceHistoryAsync(string type, string id)
        {
            var response = await this.ReadResourceHistoryInteractor.ExecuteAsync(new ReadResourceHistoryRequest { ResourceType = type, ResourceId = id });

            return(SearchResourcesPresenter.Present(response, this.Response, this.Request.ContentType));
        }