// PUT api/<controller>/5 public IHttpActionResult Put(int id, PhraseDTO pdto) { Phrase p = new Phrase(); p.Id = id; p.Body = pdto.Body; Phrase retVal = Phrases.Put(p); if (retVal != null) { return(Ok(retVal)); } else { return(BadRequest("Record could not be updated")); } }