Ejemplo n.º 1
0
        public async Task SoftDeleteAsync(Guid id)
        {
            // 这里引入领域设计中的 软删除命令
            await Bus.SendCommand(new SoftDeleteCommand <TEntity>(id));

            if (!Notifications.GetSpecifyTypeNotifications(DomainNotificationType.Success).Any())
            {
                Logger.LogWarning($"SoftDeleteAsync Erro At {typeof(TEntity).Name}", Notifications.GetNotifications());
            }
        }