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; } - } + } }