Exemple #1
0
    def delete(self, id):

        Atm = Atm.query.filter_by(Atm_id=id).first()
        if Atm:
            return delete_resource(resource=Atm, resource_type="Atm", id=id)
        else:
            return {
                "error": "A Atm with ID " + id + " does "
                "not exist."
            }, 404
Exemple #2
0
    def delete(self, id):

        subject = Subject.query.filter_by(subject_id=id).first()
        if subject:
            return delete_resource(resource=subject,
                                   resource_type="subject",
                                   id=id)
        else:
            return {"error": "A subject with ID " + id + " does "
                             "not exist."}, 404
Exemple #3
0
    def delete(self, id):

        student = Student.query.filter_by(student_id=id).first()
        if student:
            return delete_resource(resource=student,
                                   resource_type="student",
                                   id=id)
        else:
            return {"error": "A hallgatói azonosító " + id + " "
                             "nem létezik."}, 404
Exemple #4
0
    def delete(self, id):

        teacher = Teacher.query.filter_by(staff_id=id).first()
        if teacher:
            return delete_resource(resource=teacher,
                                   resource_type="teacher",
                                   id=id)
        else:
            return {"error": "A teacher with ID " + id + " does "
                             "not exist."}, 404
Exemple #5
0
    def delete(self, id):

        student = Student.query.filter_by(student_id=id).first()
        if student:
            return delete_resource(resource=student,
                                   resource_type="student",
                                   id=id)
        else:
            return {
                "error": "A student with ID " + id + " does "
                "not exist."
            }, 404
Exemple #6
0
    def delete(self, id):

        AtmCardPin = AtmCardPin.query.filter_by(staff_id=id).first()
        if AtmCardPin:
            return delete_resource(resource=AtmCardPin,
                                   resource_type="AtmCardPin",
                                   id=id)
        else:
            return {
                "error": "A AtmCardPin with ID " + id + " does "
                "not exist."
            }, 404