From 9285db33c73c147d0d73a24a9e897f28d6a0bb4c Mon Sep 17 00:00:00 2001 From: Extrimal Date: Mon, 17 Jun 2024 15:01:32 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=87=D0=B5=D1=80=D0=B5=D0=B4=D0=BD?= =?UTF-8?q?=D0=BE=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=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GarmentFactoryShopApp/Controllers/HomeController.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GarmentFactory/GarmentFactoryShopApp/Controllers/HomeController.cs b/GarmentFactory/GarmentFactoryShopApp/Controllers/HomeController.cs index 8b4f2ce..82ea0c2 100644 --- a/GarmentFactory/GarmentFactoryShopApp/Controllers/HomeController.cs +++ b/GarmentFactory/GarmentFactoryShopApp/Controllers/HomeController.cs @@ -92,7 +92,7 @@ namespace GarmentFactoryShopApp.Controllers } [HttpPost] - public void Update(int id, string shopName, string address, DateTime dateOpening, int iceCreamsMaximum) + public void Update(int id, string shopName, string address, DateTime dateOpening, int textilesMaximum) { if (string.IsNullOrEmpty(shopName)) { @@ -102,7 +102,7 @@ namespace GarmentFactoryShopApp.Controllers { throw new Exception("Адрес магазина не указан"); } - if (iceCreamsMaximum <= 0) + if (textilesMaximum <= 0) { throw new Exception("Вместимость магазина должна быть больше нуля"); } @@ -112,7 +112,7 @@ namespace GarmentFactoryShopApp.Controllers ShopName = shopName, Address = address, DateOpening = dateOpening, - TextilesMaximum = iceCreamsMaximum + TextilesMaximum = textilesMaximum }); Response.Redirect("../Index"); } @@ -144,7 +144,7 @@ namespace GarmentFactoryShopApp.Controllers { if (count <= 0) { - throw new Exception("Количество мороженого в поставке должно быть больше 0"); + throw new Exception("Количество изделий в поставке должно быть больше 0"); } APIClient.PostRequest("api/shop/makedelivery", Tuple.Create( new ShopSearchModel() { Id = shop },