diff --git a/git/JurasicZoo/ZooShowEmployeeApp/Controllers/HomeController.cs b/git/JurasicZoo/ZooShowEmployeeApp/Controllers/HomeController.cs index db44e16..59ed204 100644 --- a/git/JurasicZoo/ZooShowEmployeeApp/Controllers/HomeController.cs +++ b/git/JurasicZoo/ZooShowEmployeeApp/Controllers/HomeController.cs @@ -138,13 +138,13 @@ namespace ZooShowEmployeeApp.Controllers return View(); } [HttpPost] - public void CreatePreserve(string name, double price) + public void CreatePreserve(string name, int price) { if (APIEmployee.Employee == null) { throw new Exception("Вы как суда попали? Сюда вход только авторизованным"); } - if (string.IsNullOrEmpty(name) || price <= 0 ) + if (string.IsNullOrEmpty(name) || price <= 0) { throw new Exception("Ошибка в введённых данных"); } diff --git a/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/CreatePreserve.cshtml b/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/CreatePreserve.cshtml index 974c8bf..58f12e4 100644 --- a/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/CreatePreserve.cshtml +++ b/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/CreatePreserve.cshtml @@ -5,23 +5,16 @@

Создание Заповедника

-
-
Название:
-
- -
-
-
-
Стоимость:
-
- -
-
-
-
-
- -
-
-
+
+
название:
+
+
+
+
стоимость:
+
+
+
+
+
+
+ \ No newline at end of file diff --git a/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/Index.cshtml b/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/Index.cshtml index 060828f..7e0f7bd 100644 --- a/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/Index.cshtml +++ b/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/Index.cshtml @@ -5,8 +5,7 @@

Приложение "Зоопарк "Юрский период". Исполнитель"

- Заповедник - Заповедники + Заповедники Отчеты Вход Регистрация diff --git a/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/IndexPreserve.cshtml b/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/IndexPreserve.cshtml index a2b266f..6b61480 100644 --- a/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/IndexPreserve.cshtml +++ b/git/JurasicZoo/ZooShowEmployeeApp/Views/Home/IndexPreserve.cshtml @@ -34,6 +34,9 @@ Стоимость + + Удалить животное +