diff --git a/zmscitizenapi/src/Zmscitizenapi/Services/Core/ValidationService.php b/zmscitizenapi/src/Zmscitizenapi/Services/Core/ValidationService.php index 791695e3f..9ce16182a 100644 --- a/zmscitizenapi/src/Zmscitizenapi/Services/Core/ValidationService.php +++ b/zmscitizenapi/src/Zmscitizenapi/Services/Core/ValidationService.php @@ -421,4 +421,14 @@ private static function isValidCustomTextfield(?string $customTextfield): bool { return $customTextfield === null || (is_string($customTextfield) && strlen(trim($customTextfield)) > 0); } + + private static function isValidOfficeId(?int $officeId): bool + { + return !empty($officeId) && $officeId > 0; + } + + private static function isValidServiceId(?int $serviceId): bool + { + return !empty($serviceId) && $serviceId > 0; + } } \ No newline at end of file