public ActionResult Delete(int id) { try { _responsesService.Delete(_ => _.Id == id); _responsesService.SaveChanges(); return(StatusCode(204)); } catch (Exception e) { return(BadRequest(e.Message)); } }