def delete(self, customer_id): ''' Delete a customer by its ID. :param customer_id: The id of the customer to delete Returns True if the customer has been found and deleted. ''' result = CustomerService.delete_customer_by_id(customer_id) return jsonify(result=result)
def delete(self, customer_id): ''' Delete a customer by its ID. :param customer_id: The id of the customer to delete Returns True if the customer has been found and deleted. ''' result = CustomerService.delete_customer_by_id(customer_id) return jsonify( result=result )