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
- role
Id - int
Id of the Role.
- user
Id - 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.