PostService.Pin Method

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

Pin(int, int?, bool)

Pin the specified post.

public static Post Pin(int id, int? userId = default(int? ), bool sudo = false)

Parameters

id
int

Id of the Post to pin.

userId
int?

Id of the User that pinned, default is null which indicates the current user.

sudo
bool

true to perform action as super user, otherwise false.

Returns

Post

The pinned Post.