AttachmentService Class

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

Service layer for attachments.

public static class AttachmentService
Inheritance:
System.Object → AttachmentService

Methods

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