RoleService.RemoveMember Method

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

RemoveMember(int, int?, bool)

Removes a User from the specified Role.

public static User RemoveMember(int roleId, int? userId = default(int? ), bool sudo = false)

Parameters

roleId
int

Id of the Role.

userId
int?

Id of the User, null for the current user.

sudo
bool

true to perform action as super user, otherwise false.

Returns

User

The removed member.