EntityService.Star Method

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

Star(TStarrable, int?, bool)

Star the specified entity.

public static TStarrable Star<TStarrable>(TStarrable starrable, int? userId = default(int? ), bool sudo = false)
    where TStarrable : class, IStarrable

Parameters

starrable

The entity to star.

userId
int?

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

sudo
bool

true to perform action as super user, otherwise false.

Returns

The starred entity.