Beispiel #1
0
        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("/"));
            }
        }