UpdatesOrderAddress = $UpdatesOrderAddress; } public function execute(string $orderId, Request $request){ try{ return $this->UpdatesOrderAddress->execute($orderId,$request->address_id); return new JsonResponse([],HttpStatus::REQUEST_ACCEPTED); } catch (\Exception $exception) { throw new InternalServerErrorException("Failed to update address because{$exception->getMessage()}"); } } }