RoleService.AddMember Method

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

AddMember(int, int?, bool)

Adds a User to the specified Role.

public static User AddMember(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 added member.