if ($call == "saveUserAddress") { $userSeq = $_GET["userSeq"]; $addressType = $_GET["addressType"]; $isSameForShipping = $_GET["isSameForShipping"]; $address = $_GET["address"]; $city = $_GET["city"]; $state = $_GET["state"]; $country = $_GET["country"]; $pincode = $_GET["pincode"]; if ($userSeq != null) { try { $userAddress = new UserAddress(); $userAddress->setUserSeq($userSeq); $userAddress->setAddressType($addressType); $userAddress->setAddress($address); $userAddress->setCity($city); $userAddress->setState($state); $userAddress->setCountry($country); $userAddress->setPinCode($pincode); $userAddress->setIsSameForShipping($isSameForShipping); $userAddressSeq = $userManager->SaveUserAddress($userAddress); if ($userAddressSeq != null) { $success = 1; $message = "Address saved successfully"; } } catch (Exception $e) { $message = "Exception occured. Please try again."; } } } if ($call == "getAllUsersForGrid") {