public ActionResult Create([Bind(Include = "Id,NoSalle,TailleSalle,lstSalle")] Salle salle, Dimension Dimension, int? lstSalle)
        {
            if (ModelState.IsValid)
            {
                //db.Salles.Add(salle);
                //db.SaveChanges();
                salle.Dimension = Dimension;
                uow.SalleRepository.InsertSalle(salle);
                uow.Save();
                return RedirectToAction("Index");
            }

            return View(salle);
        }
        public ActionResult Create([Bind(Include = "Id,Nom,TailleSection,lstSalle")] Section section, Dimension Dimension, int? lstSalle)
        {
            if (ModelState.IsValid)
            {
                //db.Sections.Add(section);
                //db.SaveChanges
                section.Salle = uow.SalleRepository.ObtenirSalleParID(lstSalle);
                section.Dimension = Dimension;
                uow.SectionRepository.InsertSection(section);
                uow.Save();
                return RedirectToAction("Index");
            }

            return View(section);
        }
 public ActionResult Edit([Bind(Include = "Id,NoSalle")] Salle salle, Dimension Dimension, Section Section, Taille taille)
 {
     if (ModelState.IsValid)
     {
         //db.Entry(salle).State = EntityState.Modified;
         //db.SaveChanges();
         uow.SalleRepository.UpdateSalle(salle);
         uow.Save();
         return RedirectToAction("Index");
     }
     return View(salle);
 }