public Task BornAsync(BornCommand command) { _aggregate.GiveBirth(command.AggretateRootId, command.Name); return(Task.FromResult(true)); }
public Task GiveBirthAsync(BornCommand command) { // TODO: Check that command has not already been executed. DomainState.GiveBirth(command.AggretateRootId, command.Name); return(Task.FromResult(true)); }