22 lines
587 B
C#
22 lines
587 B
C#
using IntegryApiClient.Core.Domain.Abstraction.Contracts.Account;
|
|
using IntegryApiClient.Core.Domain.RestClient.Contacts;
|
|
using SteUp.Shared.Core.Interface.IntegryApi;
|
|
|
|
namespace SteUp.Shared.Core.Services;
|
|
|
|
public class IntegryApiService(IIntegryApiRestClient integryApiRestClient, IUserSession userSession)
|
|
: IIntegryApiService
|
|
{
|
|
public async Task<bool> SystemOk()
|
|
{
|
|
try
|
|
{
|
|
await integryApiRestClient.Get<object>("system/ok");
|
|
return true;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
} |