RoleRepo.AddUserToRole Method

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

AddUserToRole(int, int)

Adds a User to the specified Role.

public static void AddUserToRole(int userId, int roleId)

Parameters

userId
int

Id of the User.

roleId
int

Id of the Role.