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")); }
public ActionResult Delete(Guid id) { newsletterService.Delete(id); return(RedirectToAction("Index")); }