Исполнитель: я спать

This commit is contained in:
Yunusov_Niyaz 2024-05-03 01:27:35 +04:00
parent ae18ded13c
commit 3da5a75ef4

View File

@ -386,14 +386,22 @@ namespace VeterinaryShowOwnerApp.Controllers
return result;
}
[HttpGet]
public IActionResult ServiceListReport()
public IActionResult PetListReport()
{
ViewBag.Services = APIOwner.GetRequest<List<ServiceViewModel>>($"api/pet/getpets?ownerid={APIOwner.Owner.Id}");
if (APIOwner.Owner == null)
{
return Redirect("~/Home/Enter");
}
ViewBag.Pets = APIOwner.GetRequest<List<ServiceViewModel>>($"api/pet/getpets?ownerid={APIOwner.Owner.Id}");
return View();
}
[HttpGet]
public IActionResult Report()
{
if (APIOwner.Owner == null)
{
return Redirect("~/Home/Enter");
}
return View();
}
}