예제 #1
0
파일: AggregateRoot.cs 프로젝트: FWTL/Auth
        public virtual async Task CommitAsync(IAggregateStore aggregateStore)
        {
            if (ToDelete)
            {
                await aggregateStore.DeleteAsync(this as TAggregate);

                return;
            }
            await aggregateStore.SaveAsync(this as TAggregate);
        }