public IActionResult Delete(int id) { // Delete the questions with specific ID Question deleteReturn = _query.DeleteById(id); // If no question exists, return error if (deleteReturn == null) { return(BadRequest("No question exists with ID " + id)); } else { return(Ok(deleteReturn)); } }