PostService.Get Method

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

Get(int, bool, bool)

Gets the specified Post.

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

Parameters

id
int

Id of the post.

sudo
bool

true to perform action as super user, otherwise false.

trashed
bool

true to return app even if trashed, otherwise false.

Returns

Post

Returns an instance of the Post class.