Ejemplo n.º 1
0
 def getAllSuppliers(self):
     dao = SuppliersDAO()
     suppliers_list = dao.getAllSuppliers()
     result_list = []
     for row in suppliers_list:
         supplier = Supplier().build_dict_from_row(row)
         result_list.append(supplier)
     return jsonify(result_list)
Ejemplo n.º 2
0
 def getAllSuppliers(self):
     dao = SuppliersDAO()
     suppliers_list = dao.getAllSuppliers()
     result_list = []
     for row in suppliers_list:
         result = self.build_supplier_dict(row)
         result_list.append(result)
     return jsonify(Suppliers=result_list)