def put(self, request: HttpRequest, id: str, dto: ControllerInDto):
     id = self.parse_int_pk(id)
     controller = ControllerService.update(id,
                                           name=dto.name,
                                           controller_id=dto.controller_id)
     return ApiResponse.success(
         ControllerOutDto.from_controller(controller))
 def save(self, commit=True):
     controller = ControllerService.update(
         id=self.cleaned_data['id'],
         name=self.cleaned_data['name'],
         controller_id=self.cleaned_data['controller_id']
     )
     return controller