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