RoleService.GetRolesForUser Method

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

GetRolesForUser(int, bool)

Gets the Roles that the User is a member of.

public static IEnumerable<Role> GetRolesForUser(int userId, bool filter = true)

Parameters

userId
int

Id of the User for which to get Roles.

filter
bool

Returns

System.Collections.Generic.IEnumerable

Returns a list of Role objects.