diff --git a/ElectronicsShop/ElectronicsShopShopClientApp/Controllers/HomeController.cs b/ElectronicsShop/ElectronicsShopShopClientApp/Controllers/HomeController.cs index 645b955..0aae1c9 100644 --- a/ElectronicsShop/ElectronicsShopShopClientApp/Controllers/HomeController.cs +++ b/ElectronicsShop/ElectronicsShopShopClientApp/Controllers/HomeController.cs @@ -256,29 +256,6 @@ namespace ElectronicsShopUserApp.Controllers { (int, Dictionary) tuple = (id, _productList); return View(tuple); } - [HttpGet] - public IActionResult PaymentProduct(int id) - { - if (APIClient.Client == null) - { - return Redirect("~/Home/Enter"); - } - - if (id == 0) - { - return Redirect("Orders"); - } - var products = APIClient.GetRequset>>($"api/main/getorderproducts?_orderid={id}"); - - foreach (var pr in products) - { - var product = JsonConvert.DeserializeObject(pr[0]); - int count = JsonConvert.DeserializeObject(pr[1]); - _productList.Add(product.ID, (product, count)); - } - - (int, Dictionary) tuple = (id, _productList); - return View(tuple); - } + } } diff --git a/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/Payment.cshtml b/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/Payment.cshtml index 88b9e1d..625e2c6 100644 --- a/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/Payment.cshtml +++ b/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/Payment.cshtml @@ -16,6 +16,14 @@
+
+
Сумма платежа:
+
+ + +
+
+
@@ -54,14 +62,11 @@ @Html.DisplayFor(modelItem => item.Value.Item1.Price) - - - Оплатить - } +
@@ -69,4 +74,24 @@
- \ No newline at end of file + + + + \ No newline at end of file diff --git a/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/PaymentProduct.cshtml b/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/PaymentProduct.cshtml deleted file mode 100644 index 75877f4..0000000 --- a/ElectronicsShop/ElectronicsShopShopClientApp/Views/Home/PaymentProduct.cshtml +++ /dev/null @@ -1,26 +0,0 @@ -@{ - ViewData["Title"] = "AddProduct"; -} -
-

Оплата продукта

-
-
-
-
Продукты:
-
- -
-
-
-
Сумма:
-
- -
-
-
-
-
- -
-
-