PIbd-21. Shanygin A.V. Lab work 05 Hard #13

Closed
Extrimal wants to merge 15 commits from laba5_hard into laba5_base
Showing only changes of commit 9285db33c7 - Show all commits

View File

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