From cbb0d15acd799fcb3ea1b102c95d14037cb1e83f Mon Sep 17 00:00:00 2001 From: Anastasia Date: Fri, 28 Apr 2023 10:29:42 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HomeController.cs | 4 ++-- .../JewelryStoreClientApp/Views/Home/Create.cshtml | 12 ++++++------ .../JewelryStoreClientApp/Views/Home/Privacy.cshtml | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/JewelryStore/JewelryStoreClientApp/Controllers/HomeController.cs b/JewelryStore/JewelryStoreClientApp/Controllers/HomeController.cs index 998a6d0..83bdc36 100644 --- a/JewelryStore/JewelryStoreClientApp/Controllers/HomeController.cs +++ b/JewelryStore/JewelryStoreClientApp/Controllers/HomeController.cs @@ -142,9 +142,9 @@ namespace JewelryStoreClientApp.Controllers [HttpPost] public double Calc(int count, int jewel) { - var prod = APIClient.GetRequest($"api/main/getjewel?jewelId={jewel}" + var jew = APIClient.GetRequest($"api/main/getjewel?jewelId={jewel}" ); - return count * (prod?.Price ?? 1); + return count * (jew?.Price ?? 1); } } } diff --git a/JewelryStore/JewelryStoreClientApp/Views/Home/Create.cshtml b/JewelryStore/JewelryStoreClientApp/Views/Home/Create.cshtml index 3bd3745..c5e5c5a 100644 --- a/JewelryStore/JewelryStoreClientApp/Views/Home/Create.cshtml +++ b/JewelryStore/JewelryStoreClientApp/Views/Home/Create.cshtml @@ -8,12 +8,12 @@
Изделие:
- +
Количество:
-
+
Сумма:
@@ -25,7 +25,7 @@