Exemple #1
0
        public async Task <IActionResult> ChangeOrderAddressAsync(Guid orderId,
                                                                  [FromBody] ChangeOrderAddressDTO dto)
        {
            dto.OrderId = orderId;
            await _orderingAppService.ChangeOrderAddress(dto);

            return(Ok(true));
        }
Exemple #2
0
        public async Task <IActionResult> ChangeOrderAddressAsync(Guid orderId,
                                                                  [FromBody] ChangeOrderAddressDTO command)
        {
            command.OrderId = orderId;
            await _orderingAppService.ChangeOrderAddress(command);

            return(Ok());
        }
Exemple #3
0
        public async Task ChangeOrderAddress(ChangeOrderAddressDTO dto)
        {
            var item = await _writeRepository.GetAsync(dto.OrderId);

            item.ChangeAddress(dto.NewAddress);
        }