OrderController Recommendation
It's good idea to take advantage of GetOrderByIdQuery and handle by GetCustomerByIdQueryHandler
This commit is contained in:
parent
e05a876581
commit
76118776c4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user