public IActionResult Delete(int id) { // DELETE: api/ApiWithActions/5 QuestionDE de = new QuestionDE(); bool sonuc = de.DeleteQuestion(id); if (sonuc) { return(Ok()); } else { return(NotFound()); } }