UserService.Trash Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Trash(int, bool)
Trash a User, i.e. sets the IsTrashed flag.
public static User Trash(int id, bool sudo = false)
Parameters
- id
- int
Id (unique identifier).
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
User
The trashed user.