final
This commit is contained in:
@@ -64,6 +64,14 @@ public class OrdersController : ControllerBase
|
||||
return Ok(orders);
|
||||
}
|
||||
|
||||
[HttpGet("by-customer/{customerId}")]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult<IEnumerable<OrderDto>>> GetOrdersByCustomerId(Guid customerId)
|
||||
{
|
||||
var orders = await _orderService.GetOrdersByCustomerIdAsync(customerId);
|
||||
return Ok(orders);
|
||||
}
|
||||
|
||||
[HttpGet("by-identity/{identityReference}/{id}")]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult<OrderDto>> GetOrderByIdentity(string identityReference, Guid id)
|
||||
|
||||
Reference in New Issue
Block a user