public HttpResponseMessage Insert([FromBody] ExceptionLog eLog) { _ExceptionLogRepo.InsertExceptionLogDetailsAsync(eLog); var message = Request.CreateResponse(HttpStatusCode.Created, eLog); message.Headers.Location = new Uri(Request.RequestUri + eLog.ID.ToString()); return(message); }