OrderController Recommendation

It's good idea to take advantage of GetOrderByIdQuery and handle by GetCustomerByIdQueryHandler
This commit is contained in:
Mohsen Alikhani 2019-02-06 20:08:22 +03:30 committed by GitHub
parent e05a876581
commit 76118776c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,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);