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