EntityService.Unfollow Method

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

Unfollow(TFollowable, int?, bool)

Unfollow the specified entity.

public static TFollowable Unfollow<TFollowable>(TFollowable followable, int? userId = default(int? ), bool sudo = false)
    where TFollowable : class, IFollowable

Parameters

followable

The entity to unfollow.

userId
int?

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

sudo
bool

true to perform action as super user, otherwise false.

Returns

The unfollowed entity.