AttachmentService.Get Method

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

Get(int, bool, bool)

Gets an Attachment from the repository.

public static Attachment Get(int id, bool sudo = false, bool trashed = false)

Parameters

id
int

Id of the attachment.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return attachment even if trashed, otherwise false.

Returns