From b95ad316df24131c3ae34d50ed79cc1e0c46a51e Mon Sep 17 00:00:00 2001 From: "ityurner02@mail.ru" Date: Wed, 5 Apr 2023 13:29:07 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=8F=D0=B2=D0=B8=D0=BB=D0=BE?= =?UTF-8?q?=D1=81=D1=8C=20=D0=B8=D0=B7=D0=B4=D0=B5=D0=BB=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=B2=20=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlumbingRepairClientApp/Controllers/HomeController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PlumbingRepair/PlumbingRepairClientApp/Controllers/HomeController.cs b/PlumbingRepair/PlumbingRepairClientApp/Controllers/HomeController.cs index b3c792d..50226bf 100644 --- a/PlumbingRepair/PlumbingRepairClientApp/Controllers/HomeController.cs +++ b/PlumbingRepair/PlumbingRepairClientApp/Controllers/HomeController.cs @@ -2,6 +2,7 @@ using PlumbingRepairClientApp.Models; using PlumbingRepairContracts.BindingModels; using PlumbingRepairContracts.ViewModels; +using System.Collections.Generic; using System.Diagnostics; namespace PlumbingRepairClientApp.Controllers @@ -116,10 +117,12 @@ namespace PlumbingRepairClientApp.Controllers { throw new Exception("Количество и сумма должны быть больше 0"); } + var works = APIClient.GetRequest>("api/main/getworklist"); APIClient.PostRequest("api/main/createorder", new OrderBindingModel { ClientId = APIClient.Client.Id, WorkId = work, + WorkName = (works.FirstOrDefault(x => x.Id == work)).WorkName, Count = count, Sum = Calc(count, work) });