User.IsInRole Method

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

IsInRole(String)

Determines whether the user belongs to the specified role.

public bool IsInRole(string role)

Parameters

role
System.String

Returns

System.Boolean

true if the current user is a member of the specified role, otherwise false.