async Task IHandles <AttendeeUnregistered> .HandleAsync(AttendeeUnregistered message) { var attendee = _dataAccess.GetById(message.Id); if (attendee != null) { attendee.IsActiveRegistration = false; attendee.ReasonForUnregistration = message.Reason; await _dataAccess.UpdateAsync(attendee); } }
private void Apply(AttendeeUnregistered @event) { _isUnregistered = true; }