public ActionResult Edit([Bind(Include = "UID,Cas_Mort,Cas_Retablis,Cas_Confirmer,Cas_Total,Date_Ins,UID_V")] Enumeration enumeration)
 {
     if (ModelState.IsValid)
     {
         db.Entry(enumeration).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(enumeration));
 }
 public ActionResult Edit([Bind(Include = "UID,Nom")] Region region)
 {
     if (ModelState.IsValid)
     {
         db.Entry(region).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(region));
 }
 public ActionResult Edit([Bind(Include = "UID,Nom,UID_Region")] Ville ville)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ville).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.UID_Region = new SelectList(db.Regions, "UID", "Nom", ville.UID_Region);
     return(View(ville));
 }
        public ActionResult Edit(string UID_Role, string UID_User, string Role_Util)
        {
            string message = "La modification de cette d'autorisation n'été pas effectuer !!";

            if (ModelState.IsValid)
            {
                Role_Util role_Util = db.Role_Util.Find(Role_Util);
                role_Util.UID_Role        = UID_Role;
                role_Util.UID_Utilisateur = UID_User;
                role_Util.Date            = DateTime.Now;
                db.Entry(role_Util).State = EntityState.Modified;
                int x = db.SaveChanges();
                if (x > 0)
                {
                    message = "La modification de cette d'autorisation effectuer !!";
                }
                return(RedirectToAction("Index", "Access", new { msg = message }));
            }

            return(RedirectToAction("Index", "Access", new { msg = message }));
        }