public async Task <IActionResult> AddCustomerOrder( [FromRoute] Guid customerId, [FromBody] CustomerOrderRequest request) { await _mediator.Send(new PlaceCustomerOrderCommand(customerId, request.Products, request.Currency)); return(Created(string.Empty, null)); }
public async Task <IActionResult> ChangeCustomerOrder( [FromRoute] Guid customerId, [FromRoute] Guid orderId, [FromBody] CustomerOrderRequest request) { await _mediator.Send(new ChangeCustomerOrderCommand(customerId, orderId, request.Products)); return(Ok()); }
public async Task <IActionResult> AddCustomerOrder(Guid customerId, CustomerOrderRequest request) { await _mediator.Send(new PlaceCustomerOrderCommand(customerId, request.Products)); return(Created(string.Empty, null)); }