Esempio n. 1
0
def delete_part_type(id):
    try:
        examiner = helpers.Examiner(id=id,
                                    model=TipoParte,
                                    schema=tipo_parte_schema)
        return helpers.delete_row(examiner)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 2
0
def delete_repair(id):
    try:
        examiner = helpers.Examiner(id=id,
                                    model=Reparacion,
                                    schema=reparacion_schema)
        return helpers.delete_row(examiner)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 3
0
def delete_warranty(id):
    try:
        examiner = helpers.Examiner(id=id,
                                    model=Garantia,
                                    schema=garantia_schema)
        return helpers.delete_row(examiner)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 4
0
def delete_employee(id):
    try:
        examiner = helpers.Examiner(id=id,
                                    model=Empleado,
                                    schema=empleado_schema)
        return helpers.delete_row(examiner)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 5
0
def delete_user(id):
    try:
        examiner = helpers.Examiner(id=id,
                                    model=Usuario,
                                    schema=usuario_schema)
        return helpers.delete_row(examiner)

    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 6
0
def delete_vehicle(id):
    try:
        examiner = helpers.Examiner(
            id=id,
            model=Vehiculo,
            schema=vehiculo_schema
        )
        return helpers.delete_row(examiner)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 7
0
def delete_client(id):
    try:
        examiner = helpers.Examiner(
            id=id,
            model=Cliente,
            schema=cliente_schema,
        )
        return helpers.delete_row(examiner)

    except Exception as e:
        return jsonify({"error": str(e)}), 500