public void Handle(RenameInventoryItem message) { var item = _repository.GetById(message.InventoryItemId); item.ChangeName(message.NewName); _repository.Save(item, message.OriginalVersion); }
private void Handle(RenameInventoryItem message) { var item = _repository.GetById(message.InventoryItemId); item.ChangeName(message.NewName); _repository.Save(item, message.OriginalVersion); }