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, bool) Gets an Attachment from the repository.
GetArchive(IEnumerable) Creates a zip archive with the specified attachments.
GetPreviousAndNextSiblings(Attachment, bool, bool) Get closest (previous and next) siblings for the specified attachment.
Insert(Attachment, IHasAttachments, bool) Insert an attachment.
Restore(int, bool) Restores an Attachment from the trash.
Search(AttachmentQuery) Performs a search according to the specified Query object.
Trash(int, bool) Sends an Attachment to the trash.
Update(Attachment, bool) Update an attachment.