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 auth = true)

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.

auth
bool

true to check if the user has permission to insert the user, otherwise false.

Returns

User

The inserted user.