// PUT api/values/5 public HttpResponseMessage Put(int id, SomeValue value) { var resp = Request.CreateResponse(HttpStatusCode.OK); resp.Headers.Add("Foo", "foo"); resp.Headers.Add("Bar", "bar"); return resp; }
// PUT api/values/5 public void Put(int id, SomeValue value) { }
// POST api/values public void Post(SomeValue value) { }