UserService.Restore Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Restore(int, bool)
Restores a trashed User, i.e. clears the IsTrashed flag.
public static User Restore(int id, bool sudo = false)
Parameters
- id
- int
Id of user ro restore.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
User
The restored user.