Skip to main content
edited body
Source Link
Ewan
  • 84.4k
  • 5
  • 91
  • 189

When crossing domain boundary'sboundaries you can implement a Domain Service to perform the work. ie

OrderService
   PlaceOrder(Order o)
   {
       Billing.CreateBill(order.ItemName, order.amount);
       Payments.TakePayment(order.Cardnumber, order.amount);
       Accounts.CreateTransaction(order.CustomerId,order.amount);
   }

When crossing domain boundary's you can implement a Domain Service to perform the work. ie

OrderService
   PlaceOrder(Order o)
   {
       Billing.CreateBill(order.ItemName, order.amount);
       Payments.TakePayment(order.Cardnumber, order.amount);
       Accounts.CreateTransaction(order.CustomerId,order.amount);
   }

When crossing domain boundaries you can implement a Domain Service to perform the work. ie

OrderService
   PlaceOrder(Order o)
   {
       Billing.CreateBill(order.ItemName, order.amount);
       Payments.TakePayment(order.Cardnumber, order.amount);
       Accounts.CreateTransaction(order.CustomerId,order.amount);
   }
Source Link
Ewan
  • 84.4k
  • 5
  • 91
  • 189

When crossing domain boundary's you can implement a Domain Service to perform the work. ie

OrderService
   PlaceOrder(Order o)
   {
       Billing.CreateBill(order.ItemName, order.amount);
       Payments.TakePayment(order.Cardnumber, order.amount);
       Accounts.CreateTransaction(order.CustomerId,order.amount);
   }