public ActionResult Cacher(int id) { using (IDal dal = new Dal()) { int retour = dal.CacherActus(id); if (retour == -1) { ViewBag.ActionErreur("cacher une actualité"); } return(RedirectToAction("/")); } }
public ActionResult Cacher(int id) { using (IDal dal = new Dal()) { int retour = dal.CacherActus(id); if (retour == -1) { ViewBag.ActionErreur("cacher une actualité"); } return(RedirectToAction("/")); } }