public void Put(Guid id, InventoryItemDetailsDto request) { var command = new RenameInventoryItem(request.Id, request.Name, request.Version); _bus.Send(command); }
public void Post(InventoryItemDetailsDto request) { _bus.Send(new CreateInventoryItem(Guid.NewGuid(), request.Name)); }