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