def delete_brand(id):
    service = BrandService()
    result = service.delete(id)
    if not(result is None):
        return response_with_status({'message': result}, 404)
    else:
        return response_with_status({'message': 'Brand deleted'}, 204)
def delete_brand(id):
    service = BrandService()
    result = service.delete(id)
    if not (result is None):
        return response_with_status({"message": result}, 404)
    else:
        return response_with_status({"message": "Brand deleted"}, 204)