diff --git a/git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs b/git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs index 49b5a53..dc15024 100644 --- a/git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs +++ b/git/JurasicZoo/ZooClientApp/Controllers/HomeController.cs @@ -113,12 +113,12 @@ namespace ZooClientApp.Controllers [HttpGet] public IActionResult Create() { - ViewBag.Canneds = - APIClient.GetRequest>("api/main/getcannedlist"); + ViewBag.Routes = + APIClient.GetRequest>("api/main/getRoutes"); return View(); } [HttpPost] - public void Create(int canned, int count) + public void Create(int Route, int count) { if (APIClient.Client == null) { @@ -128,7 +128,7 @@ namespace ZooClientApp.Controllers { throw new Exception("Количество и сумма должны быть больше 0"); } - APIClient.PostRequest("api/main/createorder", new + APIClient.PostRequest("api/main/createroute", new RouteBindingModel { ClientId = APIClient.Client.Id diff --git a/git/JurasicZoo/ZooClientApp/Views/Home/Create.cshtml b/git/JurasicZoo/ZooClientApp/Views/Home/Create.cshtml index 66cb685..826ee2e 100644 --- a/git/JurasicZoo/ZooClientApp/Views/Home/Create.cshtml +++ b/git/JurasicZoo/ZooClientApp/Views/Home/Create.cshtml @@ -8,7 +8,7 @@
Заповедник:
- +
diff --git a/git/JurasicZoo/ZooClientApp/Views/Shared/_Layout.cshtml b/git/JurasicZoo/ZooClientApp/Views/Shared/_Layout.cshtml index 43a20fd..211ffcb 100644 --- a/git/JurasicZoo/ZooClientApp/Views/Shared/_Layout.cshtml +++ b/git/JurasicZoo/ZooClientApp/Views/Shared/_Layout.cshtml @@ -3,7 +3,7 @@ - @ViewData["Title"] - AbstractShowClientApp + @ViewData["Title"] - ZooShowClientApp @@ -13,7 +13,7 @@