public List<CategAnimal> selectCategAnimal(int idRegion)
        {
            SqlConnection cnx = AccesBDD.GetInstance().GetSqlConnexion();
            SqlCommand maCommand = new SqlCommand();
            maCommand.Parameters.Clear();

            maCommand.Connection = cnx;

            maCommand.CommandType = System.Data.CommandType.StoredProcedure;
            maCommand.CommandText = "SelectCategRegionDispo";

            maCommand.Parameters.Add("idRegion", System.Data.SqlDbType.Int);
            maCommand.Parameters[0].Value = idRegion;

            List<CategAnimal> lesCategsAnimal = new List<CategAnimal>();

            SqlDataReader monLecteur = maCommand.ExecuteReader();

            while (monLecteur.Read())
            {
                CategAnimal uneCategAnimal = new CategAnimal((int)monLecteur["idCategAnimal"], (string)monLecteur["libelleCateg"]);
                lesCategsAnimal.Add(uneCategAnimal);
            }
            return lesCategsAnimal;
        }
        public List<CategAnimal> SelectSpecialitePourUnIntervenant(int idIntervenant)
        {
            SqlConnection cnx = AccesBDD.GetInstance().GetSqlConnexion();
            SqlCommand maCommand = new SqlCommand();
            maCommand.Parameters.Clear();

            maCommand.Connection = cnx;

            maCommand.CommandType = System.Data.CommandType.StoredProcedure;
            maCommand.CommandText = "SelectSpecialitePourUnIntervenant";

            maCommand.Parameters.Add("idIntervenant", System.Data.SqlDbType.Int);
            maCommand.Parameters[0].Value = idIntervenant;

            List<CategAnimal> lesSpecialitePourUnIntervenant = new List<CategAnimal>();
            SqlDataReader monLecteur = maCommand.ExecuteReader();

            while (monLecteur.Read())
            {
                CategAnimal uneSpecialite = new CategAnimal((int)monLecteur["idCategAnimal"]);
                lesSpecialitePourUnIntervenant.Add(uneSpecialite);
            }

            return lesSpecialitePourUnIntervenant;
        }
 public int CreerRegionCategAnimal(int nbTete,int idRegion,int idCategAnimal)
 {
     Region laRegion = new Region(idRegion);
     CategAnimal laCategAnimal = new CategAnimal(idCategAnimal);
     RegionCategAnimal laRegionCategAnimal = new RegionCategAnimal(nbTete, laRegion, laCategAnimal);
     return RegionCategAnimalDAO.GetInstanceDAORegionCategAnimal().AjoutRegionCategAnimal(laRegionCategAnimal);
 }