EntityRepo.ViewAsync Method

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

ViewAsync(IEntity, int)

Marks the specified entity as viewed.

public static Task<long> ViewAsync(IEntity entity, int userid)

Parameters

entity
IEntity

The entity that was viewed.

userid
int

Id of the user that viewed the entity.

Returns

System.Threading.Tasks.Task

The total number of views for the entity.