public async Task Handle(ProductCratedIntegrationEvent notification, CancellationToken cancellationToken) { var history = EntityHistory.Create(notification.Id, notification.Name, EventType.Create, notification.CreatedBy, notification.CreatedOn); await _repository.Add(history); await _repository.CommitAsync(); }