/// <summary> /// Deletes a Person and it requirs an ID /// </summary> /// <param name="id"></param> /// <returns></returns> // DELETE: api/Person/5 public HttpResponseMessage Delete(long id) { PersonTable P = new PersonTable(); bool recoredExisted = false; recoredExisted = P.DeletePerson(id); HttpResponseMessage Response; // creating a response object if (recoredExisted) { Response = Request.CreateResponse(HttpStatusCode.NoContent); } else { Response = Request.CreateResponse(HttpStatusCode.NotFound); } return(Response); }