// POST: api/Piece public void Post([FromBody] Piece piece) { Piece p = piece; pieceSvc.Add(p); pieceSvc.Commit(); }
public IActionResult Create(PieceDto pieceDto) { _pieceService.Add(pieceDto); return(View()); }