public void Handle(EmployeeChangedDomainEvent domainEvent) { //do something here var emp = _empRepository.FindById(domainEvent.EmpId); var log = new Log { Message = $"Emp: {emp.FirstName} - {emp.LastName} has changed" }; _dbContext.Logs.Add(log); }