def get_brand(id): service = BrandService() e = service.get(id) if e is None: return response_with_status({'message': 'Brand not found'}, 404) else: return response_with_status(e.to_dict())
def get_brand(id): service = BrandService() e = service.get(id) if e is None: return response_with_status({"message": "Brand not found"}, 404) else: return response_with_status(e.to_dict())