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 sudo = false)
    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.

sudo
bool

true to perform action as super user, otherwise false.

Returns

The followed entity.