public async Task <IActionResult> Get([FromRoute] Guid orderId) { var orderIdValue = OrderId.With(orderId).Value; var domainResults = await _processor.ProcessAsync(new GetOrderLinesByOrderIdQuery(orderIdValue), new CancellationToken()); var results = domainResults.Select(x => new OrderLineRead { Id = OrderLineId.With(x.Id).GetGuid(), ProductId = ProductId.With(x.ProductId).GetGuid(), Title = x.Title, Price = x.Price, Amount = x.Amount }).ToList(); return(Ok(results)); }