Merge pull request #934 from mohsenalikhani/patch-1

OrderController Recommendation
This commit is contained in:
Miguel Veloso 2019-04-01 16:58:41 +01:00 committed by GitHub
commit 759624fa24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,6 +105,8 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API.Controllers
{
try
{
//Todo: It's good idea to take advantage of GetOrderByIdQuery and handle by GetCustomerByIdQueryHandler
//var order customer = await _mediator.Send(new GetOrderByIdQuery(orderId));
var order = await _orderQueries.GetOrderAsync(orderId);
return Ok(order);
@ -149,4 +151,4 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.API.Controllers
return await _mediator.Send(createOrderDraftCommand);
}
}
}
}