public ActionResult Creation() { var statut = new StatutStage { NomStatutStage = "Nouveau statuts" }; _db.StatutStage.Add(statut); _db.SaveChanges(); return(View("~/Views/SystemeStage/Statut/Modifier.cshtml", statut)); }
public ActionResult Creation() { var statut = new StatutStage { NomStatutStage = "Nouveau statuts" }; this.AddToastMessage("Confirmation de création", "La création a bien été effectué", ToastType.Success, true); _db.StatutStage.Add(statut); _db.SaveChanges(); return(View("~/Views/SystemeStage/Statut/Modifier.cshtml", statut)); }