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(); }
public static Nancy.ViewEngines.Razor.IHtmlString PermissionItemDisplayStyleToText(PermissionItemDisplayStyle displaystyle) { return new NonEncodedHtmlString(displaystyle.ToText()); }