public UtilisateurWeb Login(string Token) { Compte compte = ServiceSecurite.GetCompteSecurite(Token); //teste du compte et du token basic. Si incorrecte passage en catch PatientDAO _PatientDAO = new PatientDAO(); MedecinDAO _MedecinDAO = new MedecinDAO(); if (_PatientDAO.IsPatient(compte.Identifiant)) { return(Conversion(_PatientDAO.Login(compte.Identifiant, compte.MotDePass))); } else if (_MedecinDAO.IsMedecin(compte.Identifiant)) { return(Conversion(_MedecinDAO.Login(compte.Identifiant, compte.MotDePass))); } else { return(null); } }