RoleService.Restore Method

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

Restore(int, bool)

Restores a trashed Role.

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

Parameters

id
int

Id of the role to restore.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Role

The restored role.