public async Task <IActionResult> ChangeOrderAddressAsync(Guid orderId, [FromBody] ChangeOrderAddressDTO dto) { dto.OrderId = orderId; await _orderingAppService.ChangeOrderAddress(dto); return(Ok(true)); }
public async Task <IActionResult> ChangeOrderAddressAsync(Guid orderId, [FromBody] ChangeOrderAddressDTO command) { command.OrderId = orderId; await _orderingAppService.ChangeOrderAddress(command); return(Ok()); }
public async Task ChangeOrderAddress(ChangeOrderAddressDTO dto) { var item = await _writeRepository.GetAsync(dto.OrderId); item.ChangeAddress(dto.NewAddress); }