public ActionResult Delete(Guid id)
        {
            if (!CheckPermission(NewsletterPermissions.ManageNewsletters))
            {
                return(new HttpUnauthorizedResult());
            }

            var page = newsletterService.GetById(id);

            newsletterService.Delete(page);

            return(new AjaxResult().NotifyMessage("DELETE_ENTITY_COMPLETE"));
        }
Esempio n. 2
0
 public ActionResult Delete(Guid id)
 {
     newsletterService.Delete(id);
     return(RedirectToAction("Index"));
 }