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 Display(string id)
        {
            var newsletter = _newsletterService.GetById(id);

            if (newsletter == null)
            {
                return(RedirectToAction("list"));
            }

            var contents  = _newsletterService.GetContents(newsletter);
            var viewModel = new NewsletterViewModel
            {
                Items = contents.Select(item => Convert(item)).ToList()
            };

            return(View("Newsletter", viewModel));
        }