예제 #1
0
        public void UpdateOrder(OrderUpdateInputDTO order)
        {
            var customer   = this.userService.GetUserById(order.CustomerId);
            var seller     = this.userService.GetUserById(order.SellerId);
            var withdrawal = this.sellerService.GetWithdrawalById(order.WithdrawalId);

            this.customerService.EditOrder(new Order
            {
                Id         = order.Id,
                Customer   = customer,
                Seller     = seller,
                Withdrawal = withdrawal,
                Status     = (OrderStatusEnum)order.OrderStatus
            });
        }
예제 #2
0
 public void EditOrder(OrderUpdateInputDTO order)
 {
     this.customerAppService.UpdateOrder(order);
 }