AttachmentService.Insert Method
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Insert(Attachment, IHasAttachments, bool)
Insert an attachment.
public static Attachment Insert(Attachment attachment, IHasAttachments parent, bool sudo = false)
Parameters
- attachment
- Attachment
The attachment to insert.
- parent
- IHasAttachments
The entity where the file is attached.
- sudo
- bool
true
to perform action as super user, otherwise false
.
Returns
Attachment
The inserted attachment.