Exemple #1
0
        /// <summary>
        /// Gets the query result.
        /// </summary>
        /// <param name="request">The query parameters.</param>
        /// <param name="cancellationToken">Token to cancel the request.</param>
        /// <returns>The result of the query.</returns>
        public async Task <ISolutionList> Handle(ListSolutionsQuery request, CancellationToken cancellationToken)
        {
            var solutionList = await _solutionListReader.ListAsync(
                request.Data.CapabilityReferences,
                request.Data.IsFoundation,
                request.Data.SupplierId,
                cancellationToken);

            return(_mapper.Map <SolutionListDto>(solutionList));
        }
        /// <summary>
        /// Gets the query result.
        /// </summary>
        /// <param name="request">The query parameters.</param>
        /// <param name="cancellationToken">Token to cancel the request.</param>
        /// <returns>The result of the query.</returns>
        public async Task <ISolutionList> Handle(ListSolutionsQuery request, CancellationToken cancellationToken)
        {
            var solutionList = await _solutionListReader.ListAsync(request.CapabilityIdList, request.IsFoundation, cancellationToken).ConfigureAwait(false);

            return(_mapper.Map <SolutionListDto>(solutionList));
        }