lab-5 correct some config
This commit is contained in:
parent
0e5683c24e
commit
27c3c35dba
@ -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]
|
||||
|
@ -6,5 +6,5 @@
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"IPAddress": "http://localhost:5189"
|
||||
"IPAddress": "http://localhost:5230"
|
||||
}
|
Loading…
Reference in New Issue
Block a user