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 auth = true)

    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.

auth
bool

true to check permissions, otherwise false

Returns

The unfollowed entity.