コード例 #1
0
        public string getApiToken(int idSite)
        {
            Protocole        proto     = getProtocolForSite(idSite);
            ILigneRepository ligneRepo = new LigneRepository();
            Ligne            ligne     = ligneRepo.GetLineByProtocol(proto.Id);

            return(ligne.apiToken);
        }
コード例 #2
0
        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);
        }