public function destroy($id) { try { $question = $this->questionService->removeQuestion($id); } catch (QuestionServiceException $e) { return Response::json(['error' => $e->getMessage()], 404); } return Response::json([$question], 200); }
public function destroy($id) { try { $question = $this->questionService->removeQuestion($id); } catch (QuestionServiceException $e) { return Response::json(['error' => $e->getMessage()], 404); } return Response::json([$question], 200); }