public IEnumerable <Response> GetResponsesFromBase() { var query = new GetResponsesQuery(); var responsesInBase = this._queryBus.Execute(query).Responses; return(responsesInBase); }
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); }