...
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user