Beispiel #1
0
        public IActionResult Edit(PieceDto pieceDto)
        {
            _pieceService.Update(pieceDto);


            return(RedirectToAction("Index", "Piece"));
        }
Beispiel #2
0
 // PUT: api/Piece/5
 public void Put(int id, [FromBody] Piece piece)
 {
     piece.IdPiece = id;
     pieceSvc.Update(piece);
     pieceSvc.Commit();
 }