EntityService.Follow Method

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

Follow(TFollowable, int?, bool)

Follow the specified entity.

public static TFollowable Follow<TFollowable>(TFollowable followable, int? userId = default(int? ), bool auth = true)

    where TFollowable : class, IFollowable

Parameters

followable

The entity to follow.

userId
int?

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

auth
bool

true to check permissions, otherwise false

Returns

The followed entity.