From 5205b83af0959b51419bc0203f2e144004c73efc Mon Sep 17 00:00:00 2001 From: Leeza Baidar Date: Sun, 1 Oct 2023 21:16:51 +0545 Subject: [PATCH] #19315 updated --- .../CustomerOnlineV2.Common.csproj | 1 - .../Controllers/CustomerController.cs | 2 +- .../Views/Customer/CustomerRegistration.cshtml | 13 ++++++++++--- .../CustomerOnlineV2/Views/Shared/_Layout2.cshtml | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CustomerOnlineV2/CustomerOnlineV2.Common/CustomerOnlineV2.Common.csproj b/CustomerOnlineV2/CustomerOnlineV2.Common/CustomerOnlineV2.Common.csproj index fe360b8..b158ad5 100644 --- a/CustomerOnlineV2/CustomerOnlineV2.Common/CustomerOnlineV2.Common.csproj +++ b/CustomerOnlineV2/CustomerOnlineV2.Common/CustomerOnlineV2.Common.csproj @@ -7,7 +7,6 @@ - diff --git a/CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs b/CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs index d1e67de..2037840 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs +++ b/CustomerOnlineV2/CustomerOnlineV2/Controllers/CustomerController.cs @@ -45,7 +45,7 @@ namespace CustomerOnlineV2.Controllers //} [HttpPost] - public JsonResult GetAddressByPostCode(string postalCode) + public JsonResult GetAddressByPostCode([FromBody] string postalCode) { var postCode = postalCode.ToUpper(); string ProcessId = Guid.NewGuid().ToString().Replace("-", "") + ":" + postCode; diff --git a/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml b/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml index b45b6ad..a162aeb 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml +++ b/CustomerOnlineV2/CustomerOnlineV2/Views/Customer/CustomerRegistration.cshtml @@ -4,6 +4,9 @@ } + + +
@@ -411,7 +414,9 @@