UserService.Delete Method

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

Delete(int, bool)

Permanently deletes the User from the repository.

public static User Delete(int id, bool sudo = false)

Parameters

id
int

The id of the User to delete.

sudo
bool

true to perform action as super user, otherwise false.

Returns

User

The deleted User or null if the operation failed.