// PUT: api/Detento/5 public IHttpActionResult Put(int id, [FromBody] TesteTO teste) { return(Ok("Oi " + id + " " + teste.Nome + " " + teste.Num)); }
// POST: api/Detento public IHttpActionResult Post([FromBody] TesteTO teste) { return(Ok("Oi " + teste.Nome + " " + teste.Num)); }