// DELETE api/<controller>/5 public IHttpActionResult Delete(int id) { bool rows = Phrases.Delete(id); if (rows == true) { return(Content(HttpStatusCode.NoContent, 204)); } else { return(Content(HttpStatusCode.NotFound, 404)); } }