public ActionResult ContentDelete(int id) { if (Convert.ToInt32(Session["RolId"].ToString()) == 1) { _pagesService.Delete(id); } return(RedirectToAction("PageList", "Content")); }
public void Delete(int id) { _pagesService.Delete(id); }
public ActionResult ContentDelete(int id) { if (Convert.ToInt32(Session["RolId"].ToString()) == 1) { _pagesService.Delete(id); } return(RedirectToAction("PageList", "Content")); }
public void Delete(int id) { _pagesService.Delete(id); }