From 30a3f088f7412087e2c1785ef4ab1d869644ed39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=90=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Tue, 23 May 2023 00:11:38 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=87=D0=B8=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=BD=D1=83=D1=8E=20=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=B1=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CaseAccountingCustomerView/Controllers/HomeController.cs | 4 ++-- .../CaseAccountingDataBaseImplement/CaseAccountingDatabase.cs | 4 ++-- .../CaseAccountingProviderView/Controllers/HomeController.cs | 2 +- .../Controllers/ReportCustomerController .cs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CaseAccounting/CaseAccountingCustomerView/Controllers/HomeController.cs b/CaseAccounting/CaseAccountingCustomerView/Controllers/HomeController.cs index d9d54e1..ebe62bd 100644 --- a/CaseAccounting/CaseAccountingCustomerView/Controllers/HomeController.cs +++ b/CaseAccounting/CaseAccountingCustomerView/Controllers/HomeController.cs @@ -102,14 +102,14 @@ namespace CaseAccountingCustomerView.Controllers } [HttpPost] - public int[]? HearingLawyerList([FromBody] LawyerHearingListBindingModel listModel) + public int[]? SpecializationCaselist([FromBody] LawyerHearingListBindingModel listModel) { if (APIUser.User == null) { return Array.Empty(); } byte[]? file = APIUser.PostRequestWithResult - ("api/reportcustomer/lawyerhearinglist", listModel); + ("api/reportprovider/specializationcaselist", listModel); return file!.Select(b => (int)b).ToArray(); } diff --git a/CaseAccounting/CaseAccountingDataBaseImplement/CaseAccountingDatabase.cs b/CaseAccounting/CaseAccountingDataBaseImplement/CaseAccountingDatabase.cs index 75477ba..55243a9 100644 --- a/CaseAccounting/CaseAccountingDataBaseImplement/CaseAccountingDatabase.cs +++ b/CaseAccounting/CaseAccountingDataBaseImplement/CaseAccountingDatabase.cs @@ -18,8 +18,8 @@ namespace CaseAccountingDataBaseImplement Host=localhost; Port=5432; Database=CaseAccountingDatabase; - Username=courseuser; - Password=courseuser"); + Username=postgres; + Password=postgres"); } base.OnConfiguring(optionsBuilder); } diff --git a/CaseAccounting/CaseAccountingProviderView/Controllers/HomeController.cs b/CaseAccounting/CaseAccountingProviderView/Controllers/HomeController.cs index f94615e..7aae007 100644 --- a/CaseAccounting/CaseAccountingProviderView/Controllers/HomeController.cs +++ b/CaseAccounting/CaseAccountingProviderView/Controllers/HomeController.cs @@ -53,7 +53,7 @@ namespace CaseAccountingProviderView.Controllers return Array.Empty(); } byte[]? file = APIUser.PostRequestWithResult - ("api/reportprovider/specializationcaselist", listModel); + ("api/reportcustomer/lawyerhearinglist", listModel); return file!.Select(b => (int)b).ToArray(); } diff --git a/CaseAccounting/CaseAccountingRestApi/Controllers/ReportCustomerController .cs b/CaseAccounting/CaseAccountingRestApi/Controllers/ReportCustomerController .cs index 826c2b8..2f77a0a 100644 --- a/CaseAccounting/CaseAccountingRestApi/Controllers/ReportCustomerController .cs +++ b/CaseAccounting/CaseAccountingRestApi/Controllers/ReportCustomerController .cs @@ -16,10 +16,10 @@ namespace CaseAccountingRestApi.Controllers } [HttpPost] - public byte[] LawyerHearingList(LawyerHearingListBindingModel listModel) + public byte[] LawyerHearinglist(LawyerHearingListBindingModel listModel) { byte[] file = _reportCustomerLogic.SaveListFile(listModel); return file; } - } + } }