Beispiel #1
0
def remove_customer(request, customer_id):
    ##TODO try catch this
    customer = business.get_customer(customer_id)
    customer.delete()

    return HttpResponse("OK")
Beispiel #2
0
def get_customer(request, customer_id):
    customer = business.get_customer(customer_id)

    return HttpResponse(serializers.serialize("json", [customer]), content_type="application/json")