lab-5 correct some config

This commit is contained in:
Zakharov_Rostislav 2024-04-07 19:54:47 +04:00
parent 0e5683c24e
commit 27c3c35dba
2 changed files with 3 additions and 5 deletions

View File

@ -79,8 +79,7 @@ namespace BlacksmithWorkshopClientApp.Controllers
{
throw new Exception("Ââåäèòå ëîãèí è ïàðîëü");
}
APIClient.Client =
APIClient.GetRequest<ClientViewModel>($"api/client/login?login={login}&password={password}");
APIClient.Client = APIClient.GetRequest<ClientViewModel>($"api/client/login?login={login}&password={password}");
if (APIClient.Client == null)
{
throw new Exception("Íåâåðíûé ëîãèí/ïàðîëü");
@ -113,8 +112,7 @@ namespace BlacksmithWorkshopClientApp.Controllers
[HttpGet]
public IActionResult Create()
{
ViewBag.Manufactures =
APIClient.GetRequest<List<ManufactureViewModel>>("api/main/getmanufacturelist");
ViewBag.Manufactures = APIClient.GetRequest<List<ManufactureViewModel>>("api/main/getmanufacturelist");
return View();
}
[HttpPost]

View File

@ -6,5 +6,5 @@
}
},
"AllowedHosts": "*",
"IPAddress": "http://localhost:5189"
"IPAddress": "http://localhost:5230"
}