private SubMenu GetChildren()
 {
     return(new SubMenu
     {
         new ChildMenuItem("Templates", _urlHelper.Action("Index", "NewsletterTemplate"),
                           ACLOption.Create(new NewsletterTemplateACL(), NewsletterTemplateACL.List)),
         new ChildMenuItem("Newsletter", _urlHelper.Action("Index", "Newsletter"),
                           ACLOption.Create(new NewsletterACL(), NewsletterACL.List))
     });
 }
Exemplo n.º 2
0
 private SubMenu GetChildren()
 {
     return(new SubMenu
     {
         new ChildMenuItem("Comments", _urlHelper.Action("Index", "Comment"),
                           ACLOption.Create(_commentingAdminACL, CommentingAdminACL.ViewComments)),
         new ChildMenuItem("Settings", _urlHelper.Action("Index", "CommentingSettings"),
                           ACLOption.Create(_commentingAdminACL, CommentingAdminACL.EditSettings))
     });
 }