container->get('domain.notificationSMSHistory.repository'); $updateData = [ 'status' => $command->getField('status'), 'price' => $command->getField('price') ]; if ($notificationsSMSHistoryRepo->update((int)$command->getArg('id'), $updateData)) { $result->setResult(CommandResult::RESULT_SUCCESS); $result->setMessage('Successfully updated SMS notification history.'); } return $result; } }