Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public ActionResult Create([Bind(Include = "id_Cours,Code,Nom,Actif")] Cours cours, int?page) { Valider(cours); if (ModelState.IsValid) { _dataRepository.AddCours(cours); TempData["Success"] = string.Format(Messages.CoursEnregistre(cours.Nom)); return(RedirectToAction("Index")); } return(View(cours)); }