починил странную ошибку

This commit is contained in:
Артём Алейкин 2023-05-23 00:11:38 +04:00
parent 33d22bbb24
commit 30a3f088f7
4 changed files with 7 additions and 7 deletions

View File

@ -102,14 +102,14 @@ namespace CaseAccountingCustomerView.Controllers
} }
[HttpPost] [HttpPost]
public int[]? HearingLawyerList([FromBody] LawyerHearingListBindingModel listModel) public int[]? SpecializationCaselist([FromBody] LawyerHearingListBindingModel listModel)
{ {
if (APIUser.User == null) if (APIUser.User == null)
{ {
return Array.Empty<int>(); return Array.Empty<int>();
} }
byte[]? file = APIUser.PostRequestWithResult<LawyerHearingListBindingModel, byte[]> byte[]? file = APIUser.PostRequestWithResult<LawyerHearingListBindingModel, byte[]>
("api/reportcustomer/lawyerhearinglist", listModel); ("api/reportprovider/specializationcaselist", listModel);
return file!.Select(b => (int)b).ToArray(); return file!.Select(b => (int)b).ToArray();
} }

View File

@ -18,8 +18,8 @@ namespace CaseAccountingDataBaseImplement
Host=localhost; Host=localhost;
Port=5432; Port=5432;
Database=CaseAccountingDatabase; Database=CaseAccountingDatabase;
Username=courseuser; Username=postgres;
Password=courseuser"); Password=postgres");
} }
base.OnConfiguring(optionsBuilder); base.OnConfiguring(optionsBuilder);
} }

View File

@ -53,7 +53,7 @@ namespace CaseAccountingProviderView.Controllers
return Array.Empty<int>(); return Array.Empty<int>();
} }
byte[]? file = APIUser.PostRequestWithResult<CaseSpecializationListBindingModel, byte[]> byte[]? file = APIUser.PostRequestWithResult<CaseSpecializationListBindingModel, byte[]>
("api/reportprovider/specializationcaselist", listModel); ("api/reportcustomer/lawyerhearinglist", listModel);
return file!.Select(b => (int)b).ToArray(); return file!.Select(b => (int)b).ToArray();
} }

View File

@ -16,10 +16,10 @@ namespace CaseAccountingRestApi.Controllers
} }
[HttpPost] [HttpPost]
public byte[] LawyerHearingList(LawyerHearingListBindingModel listModel) public byte[] LawyerHearinglist(LawyerHearingListBindingModel listModel)
{ {
byte[] file = _reportCustomerLogic.SaveListFile(listModel); byte[] file = _reportCustomerLogic.SaveListFile(listModel);
return file; return file;
} }
} }
} }