function updateVillage_service($sessionkey, $appcode, $Village_servicedata)
{
    $main_result = "<VPROFILERESULT>";
    $main_result .= "<AUTHSTATUS>0</AUTHSTATUS>";
    $userId = ValidateSession($sessionkey, $appcode);
    if ($userId > -1) {
        $main_result = "<AUTHSTATUS>1</AUTHSTATUS>";
        $obj_Village_service = new Village_service();
        foreach ($Userdata["[UPPERTEMPLATENAME"] as $key => $child) {
            switch ($key) {
                case "SERVICEID":
                    $obj_Village_service->ServiceId = $child;
                    break;
                case "VILLAGEID":
                    $obj_Village_service->VillageId = $child;
                    break;
                case "BUSINESSID":
                    $obj_Village_service->BusinessId = $child;
                    break;
                case "DESCRIPTION":
                    $obj_Village_service->Description = $child;
                    break;
            }
        }
        $obj_retResult_Village_service = DAL_manageVillage_service::updateVillage_service($obj_Village_service);
        if ($obj_retResult_Village_service->type == 1) {
            $main_result .= "<RESULTSTATUS>1</RESULTSTATUS>";
            $main_result .= getVillage_serviceXml($obj_retResult_Village_service->data);
        } else {
            $main_result .= "<RESULTSTATUS>0</RESULTSTATUS>";
        }
    }
    $main_result .= "</VPROFILERESULT>";
    return $main_result;
}
 public static function updateVillage_service2($ServiceId, $VillageId, $BusinessId, $Description)
 {
     $obj_retResult = new returnResult();
     $obj_newVillage_service = new Village_service();
     $obj_newVillage_service->ServiceId = $ServiceId;
     $obj_newVillage_service->VillageId = $VillageId;
     $obj_newVillage_service->BusinessId = $BusinessId;
     $obj_newVillage_service->Description = $Description;
     $issuccess = DAL_manageVillage_service::updateVillage_service($obj_newVillage_service);
     if ($issuccess) {
         $obj_retResult->type = 1;
         //	$obj_retResult->data = BL_manageVillage_service::getVillage_serviceByBusinessId($obj_newVillage_service->BusinessId);
         $obj_retResult->msg = "Village_service updation is Success";
     } else {
         $obj_retResult->type = 0;
         $obj_retResult->msg = "Village_service updation is Failed";
     }
     return $obj_retResult;
 }