RoleService.Insert Method

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

Insert(Role, bool)

Inserts a Role object into the repository.

public static Role Insert(Role role, bool sudo = false)

Parameters

role
Role

Role object to insert.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Role

The inserted Role.