Skip to content

Instantly share code, notes, and snippets.

@MuizMahdi
Last active November 24, 2020 00:01
Show Gist options
  • Save MuizMahdi/113b84250d201ddd6b40b571d6555d24 to your computer and use it in GitHub Desktop.
Save MuizMahdi/113b84250d201ddd6b40b571d6555d24 to your computer and use it in GitHub Desktop.
// In the API Controller
// ...
public String createOrder(CreateOrderCommand order) {
// ...
var orderCreationResult = new Pipeline<>(new CreateOrderStageHandler(order));
return orderCreationResult;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment