GetExpersCompany

GetGroupsCompany
This commit is contained in:
mmrbnjd
2025-07-25 21:29:57 +03:30
parent d4c4bb2ffd
commit 29107ce9c6
10 changed files with 88 additions and 42 deletions

View File

@@ -18,10 +18,10 @@ namespace HushianWebApp.Service
var response = await _baseController.Post($"{BaseRoute}AddExper", request);
return response.IsSuccessStatusCode;
}
public async Task<List<Read_ExperDto>?> GetExpersCompany(int CompanyID, int PageIndex = 1, int PageSize = 10)
public async Task<List<Read_ExperDto>?> GetExpersCompany()
{
string route = $"{BaseRoute}GetExpersCompany/{CompanyID}&PageIndex={PageIndex}&PageSize={PageSize}";
string route = $"{BaseRoute}GetExpersCompany";
//&PageIndex={PageIndex}&PageSize={PageSize}
var response = await _baseController.Get(route);
if (response.IsSuccessStatusCode)
{
@@ -29,7 +29,17 @@ namespace HushianWebApp.Service
}
return null;
}
public async Task<List<Read_ExperDto>?> GetExpersCompany(int CompanyID)
{
string route = $"{BaseRoute}GetExpersCompany?CompanyID={CompanyID}";
var response = await _baseController.Get(route);
if (response.IsSuccessStatusCode)
{
return await response.Content.ReadFromJsonAsync<List<Read_ExperDto>>();
}
return null;
}
//--------------------------------------------------------------------------------------------------------------
public async Task<bool> EditUserYourself(Update_ExperDto request) //ویرایش کاربران توسط خود
{