public ActionResult ChangeName(Guid id, string name, int version) { var command = new RenameInventoryItem(id, name, version); _bus.Send(command); return RedirectToAction("Index"); }
public void Put(Guid id, InventoryItemDetailsDto request) { var command = new RenameInventoryItem(request.Id, request.Name, request.Version); _bus.Send(command); }