public IActionResult Put([FromBody] Question model) { // POST: api/Question // this post method insert the new row or update the current row if there is a record with same ID QuestionDE de = new QuestionDE(); bool sonuc = de.UpdateQuestion(model); if (sonuc) { return(Ok()); } else { return(NotFound()); } }