public ActionResult Create([Bind(Include = "IdPromo,IdHotel,DateDebut,DateFin,Valeur")] Promotions promotions)
        {
            if (ModelState.IsValid)
            {
                Hotels hotels = db.Hotels.Find(promotions.IdHotel);
                try
                {
                    hotels.ajouterPromotion(db, promotions);
                }
                catch (Exception)
                {
                    ViewBag.IdHotel       = new SelectList(db.Hotels, "IdHotel", "Nom");
                    ViewBag.MessageErreur = "Impossible d'ajouter cette promotion car elle chevauche une promotion existante.";
                    return(View(promotions));
                }
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.IdHotel = new SelectList(db.Hotels, "IdHotel", "Nom", promotions.IdHotel);
            return(View(promotions));
        }