class Internal::EdFi::SchoolYearStudentsController < Internal::Controller
  def destroy
    if school_year_student.delete_edfi_record
      render_success :ok
    else
      render_error :unprocessable_entity
    end
  end

  private
    def school_year_students
      current_school.school_year_students
    end

    def school_year_student
      @school_year_student ||= school_year_students.find_by(id: params[:id])
    end
end
