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 {