ContentService.Restore Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Overloads
Restore(int, bool) | Restores a trashed content item (and its descendants). |
Restore |
Restores a trashed content item (and its descendants). |
Restore(int, bool)
Restores a trashed content item (and its descendants).
public static Content Restore(int id, bool sudo = false)
Parameters
- id
- int
Id of the content item to restore.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
Content
The restored content item.
Restore(int, bool)
Restores a trashed content item (and its descendants).
public static T Restore<T>(int id, bool sudo = false)
where T : Content, ITrashable
Parameters
- id
- int
Id of the content item to restore.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
The restored content item.