public IHttpActionResult Delete(int id) { if (!_answerService.DeleteById(id: id)) { return(BadRequest(message: "Couldn't find your object.")); } return(Ok(content: "Delete successful")); }