public IActionResult Edit(PieceDto pieceDto) { _pieceService.Update(pieceDto); return(RedirectToAction("Index", "Piece")); }
// PUT: api/Piece/5 public void Put(int id, [FromBody] Piece piece) { piece.IdPiece = id; pieceSvc.Update(piece); pieceSvc.Commit(); }