Example #1
0
        public static List<PermissionItem> GetItemsByDisplayStyle(this PermissionGroupItemsModel permissionGroupItems, PermissionItemDisplayStyle displayStyle)
        {
            var list = from p in permissionGroupItems.Items where p.DisplayStyle == displayStyle select p;

            return list.ToList();
        }
Example #2
0
 public static Nancy.ViewEngines.Razor.IHtmlString PermissionItemDisplayStyleToText(PermissionItemDisplayStyle displaystyle)
 {
     return new NonEncodedHtmlString(displaystyle.ToText());
 }