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

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]
public int[]? HearingLawyerList([FromBody] LawyerHearingListBindingModel listModel)
public int[]? SpecializationCaselist([FromBody] LawyerHearingListBindingModel listModel)
{
if (APIUser.User == null)
{
return Array.Empty<int>();
}
byte[]? file = APIUser.PostRequestWithResult<LawyerHearingListBindingModel, byte[]>
("api/reportcustomer/lawyerhearinglist", listModel);
("api/reportprovider/specializationcaselist", listModel);
return file!.Select(b => (int)b).ToArray();
}

View File

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

View File

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

View File

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