public ActionResult DeleteContent(int id, string pageName) { try { IContentService contentService = new ContentService(); contentService.DeleteContent(id); return(RedirectToAction("EditPage", new { id = pageName })); } catch (Exception) { throw; } }
public static int DeleteContent(Content content) { return(ContentService.DeleteContent(content)); }