public HttpResponseMessage <Earthwatcher> Post(Earthwatcher earthwatcher) { Earthwatcher earthwatcherResult = earthwatcherRepository.Post(earthwatcher); var response = new HttpResponseMessage <Earthwatcher>(earthwatcherResult); response.StatusCode = HttpStatusCode.Created; // todo set location in response //response.Headers.Location=new UriPathExtensionMapping(string.Format() return(response); }