public virtual async Task CommitAsync(IAggregateStore aggregateStore) { if (ToDelete) { await aggregateStore.DeleteAsync(this as TAggregate); return; } await aggregateStore.SaveAsync(this as TAggregate); }