Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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
        )