Service/Operation/Create.php
private function prepareLogIds($custId, $adminId)
    {

        if (!$custId && !$adminId) {
            /* both are empty */
            $customer = $this->sessCust->getCustomer();
            if ($customer) {
                $custId = $customer->getId();
            }
            $user = $this->sessAdmin->getUser();
            if ($user instanceof \Magento\User\Model\User) {
                $adminId = $user->getId();
            }
        }
        return [$custId, $adminId];
    }
private function prepareLogIds($custId, $adminId)
    {

        if (!$custId && !$adminId) {
            /* both are empty */
            $customer = $this->sessCust->getCustomer();
            if ($customer) {
                $custId = $customer->getId();
            }
            $user = $this->sessAdmin->getUser();
            if ($user instanceof \Magento\User\Model\User) {
                $adminId = $user->getId();
            }
        }
        return [$custId, $adminId];
    }
Extract IDs from sessions if both are empty.

@param int $custId .
@param int $adminId
@return int[]