diff --git a/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml b/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml
index 05c4054..8202b09 100644
--- a/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml
+++ b/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml
@@ -335,12 +335,38 @@
-
+
+
@@ -463,8 +489,8 @@
-
-
+
+
@@ -542,6 +568,69 @@
$(document).ready(function () {
+ debugger;
+ $('#btnSearch').click(function (e) {
+ e.preventDefault();
+ var postalCode = $('#PostalZipCode').val();
+
+ if (!postalCode || postalCode == "" || postalCode == null) {
+ alert("Postal cannot be empty");
+ return;
+ }
+
+ $.ajax({
+ type: 'POST',
+ contentType: 'application/json; charset=utf-8',
+ url: '/Customer/GetAddressByPostCode',
+ //data: JSON.stringify({ postalCode: postalCode }),
+ data: JSON.stringify(postalCode),
+ dataType: 'json',
+ success: function (response) {
+ var data = JSON.parse(response);
+
+ $('#apiDataPopup').modal({ backdrop: 'static', keyboard: false }, 'show');
+ $('#apiDataBody tbody').empty();
+
+ if (data && data.Data && data.Data.Addresses) {
+ var addresses = data.Data.Addresses;
+
+ addresses.forEach(function (item, index) {
+ var row = $('
');
+ row.append($('').text(index + 1));
+ row.append($(' | ').text(item.Address1));
+ row.append($(' | ').text(item.Address2));
+
+ var selectButton = $(' |