private static IEnumerable <string> GetPermissionsWithStatus( PermissionsStatus permissionsStatus, PermissionStatus status ) { return(permissionsStatus.Status .Where(kvp => kvp.Value == status) .Select(kvp => kvp.Key)); }
private static IEnumerable<string> GetPermissionsWithStatus(PermissionsStatus permissionsStatus, PermissionStatus status) { return permissionsStatus.Status.Where(kvp => kvp.Value == status) .Select(kvp => kvp.Key); }
public static IEnumerable<string> GetGrantedPermissions(PermissionsStatus permissionsStatus) { return GetPermissionsWithStatus(permissionsStatus, PermissionStatus.Granted); }
public static IEnumerable <string> GetGrantedPermissions(PermissionsStatus permissionsStatus) { return(GetPermissionsWithStatus(permissionsStatus, PermissionStatus.Granted)); }