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 }); }
public void EditOrder(OrderUpdateInputDTO order) { this.customerAppService.UpdateOrder(order); }