// POST: api/Pessoa public HttpResponseMessage Post([FromBody] pessoa value) { try { value.id = Guid.NewGuid(); PessoaNegocio.AddPessoa(value); return(Request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex)); } }