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