Implementato controllo conessione dispositivo e servizi. Completata pagination commesse e attività per cliente
This commit is contained in:
@@ -26,7 +26,7 @@ public class ManageDataService(
|
||||
whereCond ??= new WhereCondContact();
|
||||
whereCond.OnlyContact = true;
|
||||
|
||||
if (networkService.IsNetworkAvailable())
|
||||
if (networkService.ConnectionAvailable)
|
||||
{
|
||||
var response = await integryApiService.RetrieveAnagClie(
|
||||
new CRMAnagRequestDTO
|
||||
@@ -58,7 +58,7 @@ public class ManageDataService(
|
||||
whereCond ??= new WhereCondContact();
|
||||
whereCond.OnlyContact = true;
|
||||
|
||||
if (networkService.IsNetworkAvailable())
|
||||
if (networkService.ConnectionAvailable)
|
||||
{
|
||||
var response = await integryApiService.RetrieveProspect(
|
||||
new CRMProspectRequestDTO
|
||||
@@ -88,7 +88,7 @@ public class ManageDataService(
|
||||
List<PtbPros>? prospectList;
|
||||
whereCond ??= new WhereCondContact();
|
||||
|
||||
if (networkService.IsNetworkAvailable())
|
||||
if (networkService.ConnectionAvailable)
|
||||
{
|
||||
var clienti = await integryApiService.RetrieveAnagClie(
|
||||
new CRMAnagRequestDTO
|
||||
@@ -160,7 +160,7 @@ public class ManageDataService(
|
||||
{
|
||||
List<StbActivity>? activities;
|
||||
|
||||
if (networkService.IsNetworkAvailable() && !useLocalDb)
|
||||
if (networkService.ConnectionAvailable && !useLocalDb)
|
||||
{
|
||||
activities = await integryApiService.RetrieveActivity(
|
||||
new CRMRetrieveActivityRequestDTO
|
||||
|
||||
Reference in New Issue
Block a user