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

    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.

auth
bool

true to check permissions, otherwise false

Returns

The unliked entity.