Лабораторная_5
This commit is contained in:
parent
edc9ebe314
commit
58c76a07fd
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
@{
|
||||
ViewData["Title"] = "Enter";
|
||||
}
|
||||
}
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Вход в приложение</h2>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user