//
 // GET: /Univers/
 public ActionResult Index()
 {
     using (IDal dal = new Dal())
     {
         IEnumerable<Univers> univers = dal.ObtientTousLesUnivers();
         return View(univers);
     }
 }
 public ActionResult Delete(int id)
 {
     using (IDal dal = new Dal())
     {
         dal.SupprimerUnUnivers(id);
         List<Univers> univers = dal.ObtientTousLesUnivers();
         return View("Index", univers);
     }
 }
        public ActionResult Edit(Univers pUnivers)
        {
            using (IDal dal = new Dal())
            {
                dal.ModifierUnivers(pUnivers.UniversId, pUnivers.Nom);

                IEnumerable<Univers> lstUnivers = dal.ObtientTousLesUnivers();
                return View("Index", lstUnivers);
            }
        }
        public ActionResult Create(Univers univers)
        {
            using (IDal dal = new Dal())
            {
                dal.CreerUnivers(univers.Nom);

                IEnumerable<Univers> lstUnivers = dal.ObtientTousLesUnivers();
                return View("Index", lstUnivers);
            }
        }