public function index(Exam $exam) { return Result::where('exam_id', $exam->id)->orderBy('sroll', 'asc')->get()->toJson(); }