This is the mehod Web api "POST":
// POST: api/Bustas
[ResponseType(typeof(Busta))]
public IHttpActionResult PostBusta(Busta busta)
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
db.Bustas.Add(busta);
db.SaveChanges();
return CreatedAtRoute("DefaultApi", new
{ id = busta.IDBusta }, busta);
}
putting a breakpoint on this line
db.Bustas.Add(busta);
this result is (IDbusta = 3 , NomeCliente = nulll, prezzo = 0)