Exemplo n.º 1
0
        public ActionResult DeleteContent(int seanceID, string contenuTitre)
        {
            try
            {
                seanceService.DeleteContentFromSeance(seanceID, contenuTitre);

                System.Web.HttpContext.Current.Session[SESSION_UV] = true;
            }
            catch (DuplicateContentException ex)
            {
                TempData["DuplicateError"] = ex.Message;
            }

            return(RedirectToAction("Edit", new { id = seanceID }));
        }