public HttpResponseMessage PostFornecedor(Fornecedor item) { item = repositorio.Add(item); var response = Request.CreateResponse <Fornecedor>(HttpStatusCode.Created, item); string uri = Url.Link("DefaultApi", new { id = item.IDFornecedor }); response.Headers.Location = new Uri(uri); return(response); }