- import '../api_service.dart';
- class AgenteSyncService {
- final ApiService _api;
- AgenteSyncService(this._api);
- Future<bool> checkAgent(String codAgente) async {
- try {
- final resp = await _api.get('/rest/agente/esisteNew/$codAgente');
- return resp['status'] == 0;
- } catch (_) {
- return false;
- }
- }
- }
|