Пример #1
0
        public override void Handle(ChangeInventoryItemDetailsCommand command)
        {
            InventoryItem inventoryItem = _repository.GetById(command.Id);

            inventoryItem.ChangeDetails(command.Name, command.Description);

            _repository.Save(inventoryItem);
        }