поручитель коммит

This commit is contained in:
antoc0der 2024-05-01 18:47:58 +04:00
parent eb5e34cd89
commit 1665eb8585
3 changed files with 6 additions and 8 deletions

View File

@ -322,13 +322,13 @@ namespace VeterinaryShowOwnerApp.Controllers
}
return result;
}
public IActionResult Purchase()
public IActionResult Purchases()
{
if (APIOwner.Owner == null)
{
return Redirect("~/Home/Enter");
}
return View(APIOwner.GetRequest<List<PurchaseViewModel>>($"api/purchase/getpyrchase?ownerid={APIOwner.Owner.Id}"));
return View(APIOwner.GetRequest<List<PurchaseViewModel>>($"api/purchase/getpurchase?ownerid={APIOwner.Owner.Id}"));
}
public IActionResult CreatePurchase()

View File

@ -1,7 +1,7 @@
@using VeterinaryContracts.ViewModels
@model List<PurchaseViewModel>
@{
ViewData["Title"] = "Home Page";
ViewData["Title"] = "Purchases";
}
<div class="text-center">
<h1 class="display-4">Покупки</h1>
@ -14,7 +14,7 @@
return;
}
<p>
<a asp-action="CreateMedicine">Создать покупку</a>
<a asp-action="CreatePurchase">Создать покупку</a>
</p>
<table class="table">
<thead>

View File

@ -1,7 +1,7 @@
@using VeterinaryContracts.ViewModels
@model List<VisitViewModel>
@{
ViewData["Title"] = "Home Page";
ViewData["Title"] = "Visits";
}
<div class="text-center">
<h1 class="display-4">Визиты</h1>
@ -14,9 +14,7 @@
return;
}
<p>
<a asp-action="CreateMedicine">Создать визит</a>
<a asp-action="UpdateMedicine">Обновить визит</a>
<a asp-action="DeleteMedicine">Удалить визит</a>
<a asp-action="CreateVisit">Создать визит</a>
</p>
<table class="table">
<thead>