UserService.Insert Method

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

Insert(User, string, bool)

Inserts a User into the repository.

public static User Insert(User user, string password = null, bool sudo = false)

Parameters

user
User

User to insert.

password
string

The password to set for the user or null if the User should not be able to login.

sudo
bool

true to perform action as super user, otherwise false.

Returns

User

The inserted user.