This commit is contained in:
Leozillo73 2024-06-01 00:31:27 +04:00
parent d81ce62928
commit 24f3bbc540
4 changed files with 8 additions and 3 deletions

View File

@ -246,11 +246,14 @@ namespace ZooClientApp.Controllers
{
ClientId = APIClient.Client.Id,
RoutePreserves = a,
DateStart = dateTime,
RoutePrice = 100,
RouteName = name
});
Response.Redirect("IndexRoute");
}
//=================ПОКУПКИ=================
//=================ПРОЧЕЕ=================

View File

@ -7,7 +7,8 @@
<h1 class="display-4">Приложение "Зоопарк "Юрский период". Клиент"</h1>
<div class="list-group">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="IndexRoute">Маршруты</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="IndexRoute">Создание маршрута</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy">Политика</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Reports">Отчеты</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Enter">Вход</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Register">Регистрация</a>

View File

@ -54,6 +54,7 @@
<td>
@Html.DisplayFor(modelItem => item.DateStart)
</td>
</tr>
}
</tbody>

View File

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