RoleService.Trash Method

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

Trash(int, bool)

Trashes a Role.

public static Role Trash(int id, bool sudo = false)

Parameters

id
int

Id of the role to trash.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Role

The trashed role.