public ActionResult <int> DeleteAnswerById(int answerId) { AuthorDataAccess answers = new AuthorDataAccess(); var answer = answers.GetAnswerById(answerId); if (answer == null) { return(BadRequest("Ответа не существует")); } answers.DeleteAnswerById(answerId); return(Ok(answerId)); }