Esempio n. 1
0
 public Task Handle(Commands.V1.Withdraw command) =>
 HandleForUpdate(command.Id, account => account.Withdraw(command.Amount, command.Description));
Esempio n. 2
0
 public Task <IActionResult> Put(Commands.V1.Withdraw command) => HandleOrThrow(command, app => applicationService.Handle(app));