private function updateUserInfo($userDto)
 {
     if (is_null($userDto->userId) or is_null($userDto->emailId) or is_null($userDto->userName)) {
         $this->response->body(DTO\ClsErrorDto::prepareError(114));
         \Cake\Log\Log::error("User information is empty");
         return FAIL;
     }
     if ($this->getTableObj()->update($userDto)) {
         $this->response->body(DTO\ClsErrorDto::prepareSuccessMessage("User updated successfully for userid " . $userDto->userId));
         $syncController = new SyncController();
         $downloadUserDto = new DownloadDto\UserDto($userDto->userId, $userDto->userName, $userDto->photoUrl);
         $syncController->userEntry($userDto->userId, json_encode($downloadUserDto), INSERT);
     } else {
         $this->response->body(DTO\ClsErrorDto::prepareError(108));
     }
 }