class MonitoringOfficerInviteController {

    @PostMapping("/monitoring-officer/add-monitoring-officer-role/{inviteHash}")
    public RestResult<Void> addMonitoringOfficerRole(@PathVariable("inviteHash") String hash) {
        return monitoringOfficerInviteService.addMonitoringOfficerRole(hash)
                .andOnSuccess(user -> crmService.syncCrmContact(user.getId()))
                .toPostResponse();
    }

    public  MonitoringOfficerInviteController(MonitoringOfficerInviteService monitoringOfficerInviteService,
                                             RegistrationService registrationService,
                                             CrmService crmService,
                                             UserService userService);

}