コード例 #1
0
 public Task Handle(Commands.V1.CreateAccount command) =>
 repository.SaveAsync(Domain.Account.Create(command.Id, command.Owner, command.Name));
コード例 #2
0
 public Task <IActionResult> Post(Commands.V1.CreateAccount command) => HandleOrThrow(command, app => applicationService.Handle(app));