public string getApiToken(int idSite) { Protocole proto = getProtocolForSite(idSite); ILigneRepository ligneRepo = new LigneRepository(); Ligne ligne = ligneRepo.GetLineByProtocol(proto.Id); return(ligne.apiToken); }
public IList <Ligne> getAllApiLine() { ILigneRepository ligneRepo = new LigneRepository(); // Récupère toutes les lignes dont le parametre PCComApi est à true ( champ Bdd : est_api) IList <Ligne> ligneList = ligneRepo.GetAllApiLine(); return(ligneList); }