public override void Handle(ChangeInventoryItemDetailsCommand command) { InventoryItem inventoryItem = _repository.GetById(command.Id); inventoryItem.ChangeDetails(command.Name, command.Description); _repository.Save(inventoryItem); }
public override void Handle(ChangeInventoryItemDetailsCommand command) { InventoryItem inventoryItem = _repository.GetById(command.Id); inventoryItem.ChangeDetails(command.Name, command.Description); _repository.Save(inventoryItem); }