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 @@