public void Handle(DeleteHistoryCommand message) { if (!_database.IsOpen) { throw new DatabaseClosedException(); } _database.DeleteHistory(message.Entry.Id, message.HistoryIndex); message.Entry.History.RemoveAt(message.HistoryIndex); }