CollectionExtensions.Assert Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Assert(ICollection, Permission)

Throws a ForbiddenException if the requested permission does not exist in the list of supplied permissions.

public static void Assert(this ICollection permissions, Permission requested)

Parameters

permissions
System.Collections.Generic.ICollection{Weavy.Core.Models.Permission}
requested
Permission