//DELETE //description: delete service request based on id //route: api/servicerequest/{id} // Response //201: successful //404: not found // DELETE: api/CreateServiceRequest/5 public HttpResponseMessage Delete(string id) { try { bool success = serviceRequests.DeleteRequest(id); //data = data.Remove(0); //for testing not found if (success) { return(Request.CreateResponse(HttpStatusCode.OK)); } else { return(Request.CreateResponse(HttpStatusCode.NotFound)); } } catch { return(Request.CreateResponse(HttpStatusCode.NotFound)); } }