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

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

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

            item.ChangeAddress(dto.NewAddress);
        }