예제 #1
0
        public void Handle(RenameInventoryItem message)
        {
            var item = _repository.GetById(message.InventoryItemId);

            item.ChangeName(message.NewName);
            _repository.Save(item, message.OriginalVersion);
        }
예제 #2
0
 private void Handle(RenameInventoryItem message)
 {
     var item = _repository.GetById(message.InventoryItemId);
     item.ChangeName(message.NewName);
     _repository.Save(item, message.OriginalVersion);
 }