EntityService.Unlike Method

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

Unlike(TLikeable, int?, bool)

Unlike the specified entity.

public static TLikeable Unlike<TLikeable>(TLikeable likeable, int? userId = default(int? ), bool sudo = false)
    where TLikeable : class, ILikeable

Parameters

likeable

The entity to unlike.

userId
int?

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

sudo
bool

true to perform action as super user, otherwise false.

Returns

The unliked entity.