This commit is contained in:
mmrbnjd
2025-10-24 14:26:20 +03:30
parent 58975ce589
commit 214112a92a
21 changed files with 559 additions and 2893 deletions

View File

@@ -57,14 +57,15 @@ namespace HushianWebApp.Service
}
return null;
}
public async Task<List<Read_GroupDto>?> GetGroupsCompany(int CompanyID)
public async Task<List<Read_GroupDto>> GetGroupsCompany(int CompanyID)
{
var response = await _baseController.Get($"{BaseRoute}GetGroupsCompany?CompanyID={CompanyID}");
if (response.IsSuccessStatusCode)
{
return await response.Content.ReadFromJsonAsync<List<Read_GroupDto>>();
var data= await response.Content.ReadFromJsonAsync<List<Read_GroupDto>>();
return data==null ?new() : data;
}
return null;
return new();
}
public async Task<List<Read_GroupDto>?> GetGroupsFromExperID(int ExperID)
{