function updatePerson_talent($sessionkey, $appcode, $Person_talentdata)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result = "<AUTHSTATUS>1</AUTHSTATUS>";
        $obj_Person_talent = new Person_talent();
        foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) {
            switch ($key) {
                case "TBLID":
                    $obj_Person_talent->TblId = $child;
                    break;
                case "PERSONID":
                    $obj_Person_talent->PersonId = $child;
                    break;
                case "TALENTID":
                    $obj_Person_talent->TalentId = $child;
                    break;
            }
        }
        $obj_retResult_Person_talent = DAL_managePerson_talent::updatePerson_talent($obj_Person_talent);
        if ($obj_retResult_Person_talent->type == 1) {
            $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
            $main_result .= getPerson_talentXml($obj_retResult_Person_talent->data);
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
 public static function updatePerson_talent2($TblId, $PersonId, $TalentId)
 {
     $obj_retResult = new returnResult();
     $obj_newPerson_talent = new Person_talent();
     $obj_newPerson_talent->TblId = $TblId;
     $obj_newPerson_talent->PersonId = $PersonId;
     $obj_newPerson_talent->TalentId = $TalentId;
     $issuccess = DAL_managePerson_talent::updatePerson_talent($obj_newPerson_talent);
     if ($issuccess) {
         $obj_retResult->type = 1;
         //	$obj_retResult->data = BL_managePerson_talent::getPerson_talentByTblId($obj_newPerson_talent->TblId);
         $obj_retResult->msg = "Person_talent updation is Success";
     } else {
         $obj_retResult->type = 0;
         $obj_retResult->msg = "Person_talent updation is Failed";
     }
     return $obj_retResult;
 }