public void Handle(ContractDeleted domainEvent) { var contractDeleted = domainEvent.DeletedContract; var toBeDeleted = _adviceRepository.GetByRelationIdAndType(contractDeleted.Id, RelatedEntityType.itContract).ToList(); _adviceService.BulkDeleteAdvice(toBeDeleted); }
public void Handle(EntityDeletedEvent <DataProcessingRegistration> domainEvent) { var dataProcessingRegistration = domainEvent.Entity; var toBeDeleted = _adviceRepository.GetByRelationIdAndType(dataProcessingRegistration.Id, RelatedEntityType.dataProcessingRegistration).ToList(); _adviceService.BulkDeleteAdvice(toBeDeleted); }
public void Handle(EntityDeletedEvent <ItProject> domainEvent) { var projectDeleted = domainEvent.Entity; var toBeDeleted = _adviceRepository.GetByRelationIdAndType(projectDeleted.Id, RelatedEntityType.itProject).ToList(); _adviceService.BulkDeleteAdvice(toBeDeleted); }
public void Handle(EntityDeletedEvent <ItSystemUsage> domainEvent) { var systemUsageDeleted = domainEvent.Entity; var toBeDeleted = _adviceRepository.GetByRelationIdAndType(systemUsageDeleted.Id, RelatedEntityType.itSystemUsage).ToList(); _adviceService.BulkDeleteAdvice(toBeDeleted); }