public void Handle(AccountDeletedEvent @event) { var userDB = _userRepository.GetUserBy(user => user.Id == @event.UserId); userDB.SalesmanagoContactId = DeleteContact(userDB.UserEmail) ? null : userDB.SalesmanagoContactId; _userRepository.Update(userDB); }
public void Handle(AccountDeletedEvent e) { this.Version = e.Version; this.State = e.AccountState; }
public void Handle(AccountDeletedEvent message) { this._db.Update(message.AggregateId, message.AccountState, message.Version); }
private void HandleAccountDeletedEvent(AccountDeletedEvent obj) { this.RefreshStorageAccounts(); }
private void HandleAccountDeletedEvent(AccountDeletedEvent obj) { this.ResetNavigation(); }