поручитель коммит
This commit is contained in:
parent
eb5e34cd89
commit
1665eb8585
@ -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()
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user