updatesServiceFees = $updatesServiceFees; } public function execute(Request $request){ try{ $object = new ServiceObject($request->input('type'), $request->input('forwarder_id'), $request->input('name'), $request->input('description'), $request->input('cost')); return $this->updatesServiceFees->execute($request->input('id'), $object); return new JsonResponse([],HttpStatus::REQUEST_ACCEPTED); }catch (\Exception $exception){ throw new InternalServerErrorException("Failed to update Service Fees because{$exception->getMessage()}"); } } }