// PUT api/<controller>/5 public IHttpActionResult Put(Term term) { IHttpActionResult result = null; TermService service = new TermService(); if (service.GetTerm(term.ID) != null) { service.UpdateTerm(term); result = Ok(term); } else { result = NotFound(); } return(result); }