Esempio n. 1
0
        public ActionResult DeleteContent(int id, string pageName)
        {
            try
            {
                IContentService contentService = new ContentService();
                contentService.DeleteContent(id);


                return(RedirectToAction("EditPage", new { id = pageName }));
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 2
0
 public static int DeleteContent(Content content)
 {
     return(ContentService.DeleteContent(content));
 }