AttachmentService Class

Namespace:
Weavy.Core.Services
Assembly:
Weavy.Core.dll

Service layer for attachments.

public static class AttachmentService
Inheritance:
System.Object → AttachmentService

Methods

Delete(int, bool) Permanently deletes an attachment from the repository.
Get(int, bool) Gets an Attachment from the repository.
GetArchive(IEnumerable) Creates a zip archive with the specified attachments.
Insert(Attachment, IHasAttachments, bool) Insert an attachment.
Restore(int) Restores an Attachment from the trash.
Search(AttachmentQuery) Performs a search according to the specified Query object.
Trash(int) Sends an Attachment to the trash.
Update(Attachment, bool) Update an attachment.