Лабораторная_5

This commit is contained in:
yuliya.mavrina@internet.ru 2024-04-23 22:56:43 +03:00
parent edc9ebe314
commit 58c76a07fd
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ namespace RenovationWorkClientApp.Controllers
[HttpPost]
public double Calc(int count, int repair)
{
var _repair = APIClient.GetRequest<RepairViewModel>($"api/main/get repair? repairid={repair}");
var _repair = APIClient.GetRequest<RepairViewModel>($"api/main/getrepair?repairid={repair}");
return Math.Round(count * (_repair?.Price ?? 1), 2);
}
}

View File

@ -1,6 +1,6 @@
@{
ViewData["Title"] = "Enter";
}
}
<div class="text-center">
<h2 class="display-4">Вход в приложение</h2>
</div>