...
This commit is contained in:
@@ -73,9 +73,13 @@ namespace HushianWebApp.Service
|
||||
return response.IsSuccessStatusCode;
|
||||
|
||||
}
|
||||
public async Task<ChatItemDto> GetLastChatInCompany(int CompanyID)
|
||||
public async Task<ChatItemDto?> GetLastOpenChatInCompany(int CompanyID)
|
||||
{
|
||||
return new();
|
||||
var response = await _baseController.Get($"{BaseRoute}User/LastOpenChatInCompany/{CompanyID}");
|
||||
if (response.StatusCode==System.Net.HttpStatusCode.OK)
|
||||
return await response.Content.ReadFromJsonAsync<ChatItemDto>();
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user