public ActionResult EditCategorie_Modele(int id) { if (Session["identifiant"] == null) { return(RedirectToAction("Index", "Home")); } ViewData["cat"] = new SelectList(BissInventaireEntities.Instance.Categorie.ToList(), "Id_categorie", "libelle"); ViewData["des"] = new SelectList(BissInventaireEntities.Instance.Categorie.ToList(), "id_categorie_Designation", "libelle"); var cat = db.FindCategorie_ModeleById(id); return(View(cat)); }