From 24f3bbc5404694d0fb0bb99d5b746c88ce17ef82 Mon Sep 17 00:00:00 2001 From: Leozillo73 <76777036+Leozillo73@users.noreply.github.com> Date: Sat, 1 Jun 2024 00:31:27 +0400 Subject: [PATCH] =?UTF-8?q?=D1=8B=D0=B2=D1=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs | 3 +++ git/JurasicZoo/ZooClientApp/Views/Home/Index.cshtml | 3 ++- git/JurasicZoo/ZooClientApp/Views/Home/IndexRoute.cshtml | 1 + git/JurasicZoo/ZooRestApi/Controllers/RouteController.cs | 4 ++-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs b/git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs index b445fb8..c500ef8 100644 --- a/git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs +++ b/git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs @@ -246,11 +246,14 @@ namespace ZooClientApp.Controllers { ClientId = APIClient.Client.Id, RoutePreserves = a, + DateStart = dateTime, RoutePrice = 100, RouteName = name }); Response.Redirect("IndexRoute"); } + + //=================ПОКУПКИ================= //=================ПРОЧЕЕ================= diff --git a/git/JurasicZoo/ZooClientApp/Views/Home/Index.cshtml b/git/JurasicZoo/ZooClientApp/Views/Home/Index.cshtml index 4194cfb..9330778 100644 --- a/git/JurasicZoo/ZooClientApp/Views/Home/Index.cshtml +++ b/git/JurasicZoo/ZooClientApp/Views/Home/Index.cshtml @@ -7,7 +7,8 @@

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

- Маршруты + Создание маршрута + Политика Отчеты Вход Регистрация diff --git a/git/JurasicZoo/ZooClientApp/Views/Home/IndexRoute.cshtml b/git/JurasicZoo/ZooClientApp/Views/Home/IndexRoute.cshtml index 17fddd5..65de315 100644 --- a/git/JurasicZoo/ZooClientApp/Views/Home/IndexRoute.cshtml +++ b/git/JurasicZoo/ZooClientApp/Views/Home/IndexRoute.cshtml @@ -54,6 +54,7 @@ @Html.DisplayFor(modelItem => item.DateStart) + } diff --git a/git/JurasicZoo/ZooRestApi/Controllers/RouteController.cs b/git/JurasicZoo/ZooRestApi/Controllers/RouteController.cs index 0e39ff9..19ac0eb 100644 --- a/git/JurasicZoo/ZooRestApi/Controllers/RouteController.cs +++ b/git/JurasicZoo/ZooRestApi/Controllers/RouteController.cs @@ -80,7 +80,7 @@ namespace ZooRestApi.Controllers } [HttpPost] - public bool UpdateVisit(RouteBindingModel model) + public bool UpdateRoute(RouteBindingModel model) { try { @@ -93,7 +93,7 @@ namespace ZooRestApi.Controllers } } [HttpPost] - public bool DeleteVisit(RouteBindingModel model) + public bool DeleteRoute(RouteBindingModel model) { try {