RoleService.AddMember Method

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

AddMember(int, int?)

Adds a User to the specified Role.

public static User AddMember(int roleId, int? userId = default(int? ))

Parameters

roleId
int

Id of the Role.

userId
int?

Id of the User, null for the current user.

Returns