def get(self, id): order_schema = Models.OrdersSchema(many=True) orders = Models.Orders.get(id) result = order_schema.dump(orders) return result
def get(self, id): order_schema = Models.OrdersSchema(many=True) order = Models.OrderDetails.get(id) result = Models.OrderDetailsSchema(many=True).dump(order) return result