Exemple #1
0
        // POST: api/Piece
        public void Post([FromBody] Piece piece)
        {
            Piece p = piece;

            pieceSvc.Add(p);
            pieceSvc.Commit();
        }
Exemple #2
0
 public IActionResult Create(PieceDto pieceDto)
 {
     _pieceService.Add(pieceDto);
     return(View());
 }