AttachmentService.Restore Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Restore(int, bool)
Restores an Attachment from the trash.
public static Attachment Restore(int id, bool sudo = false)
Parameters
- id
- int
Id of the file to restore.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
Attachment
The restored file.