예제 #1
0
        public ActionResult ChangeName(Guid id, string name, int version)
        {
            var command = new RenameInventoryItem(id, name, version);
            _bus.Send(command);

            return RedirectToAction("Index");
        }
예제 #2
0
 public void Put(Guid id, InventoryItemDetailsDto request)
 {
     var command = new RenameInventoryItem(request.Id, request.Name, request.Version);
     _bus.Send(command);
 }