HealthExtensionWorker healthWorker = healthPostService.findHwById(workerId);
healthWorker.setFullName(fullName);
healthWorker.setPhoneNumber(phoneNumber);
healthWorker.setSex(sex);
boolean result = healthPostService.persistHealthWorker(healthWorker);
CustomGenericResponse response = new CustomGenericResponse();
if (result) {
response.setMessage("Action Successful");
response.setSuccess(true);
} else {
response.setMessage("Action Failed");
response.setSuccess(false);
}
return response;
}