Example #1
0
        public void UpdateAirWaybill(UpdateAirWaybillInputDto inputDto)
        {
            var order = _orderRepository.Get(inputDto.Id);

            Validate.Found(order, "Orderan");

            order.ChangeAirWaybill(inputDto.AirWaybill);
            UpdateTrackingInfo(order.Id);

            _orderRepository.Update(order);
        }
Example #2
0
 public IActionResult UpdateAirWaybill(UpdateAirWaybillInputDto inputDto)
 {
     _orderAppService.UpdateAirWaybill(inputDto);
     return(Ok());
 }