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 auth = true)
where TStarrable : class, IStarrable
Parameters
- starrable
The entity to star.
- user
Id - int?
Id of the User that stars, default is null
which indicates the current user.
- auth
- bool
true
to check permissions, otherwise false
Returns
The starred entity.