public async Task <ActionResult <Guid> > Create(Customer customer, CancellationToken ct = default) { customer.AccountId = _userContext.AccountId; var id = await _customersService.CreateAsync(_userContext.UserId, customer, ct); return(Created(nameof(Get), id)); }
public async Task HandleAsync(SignedUp @event) => await _customersService.CreateAsync(@event.UserId, @event.Email);