コード例 #1
0
        public IEnumerable <Response> GetResponsesFromBase()
        {
            var query           = new GetResponsesQuery();
            var responsesInBase = this._queryBus.Execute(query).Responses;

            return(responsesInBase);
        }
コード例 #2
0
        public async Task <IEnumerable <ResponseDto> > GetResponses()
        {
            var query           = new GetResponsesQuery();
            var responsesResult = await this.queryBus.ExecuteAsync(query);

            var responsesDto = responsesResult.Responses.Select(x => new ResponseDto(x));

            return(responsesDto);
        }