Ejemplo n.º 1
0
 async Task IVoteRepository.DeleteAsync(Vote vote, CancellationToken cancellationToken)
 => await DeleteAsync <DbVote>(DbVote.CreateId(vote.UserId, vote.EntityType, vote.EntityId), cancellationToken);
Ejemplo n.º 2
0
 async Task <Vote> IVoteRepository.GetAsync(string userId, NanokaEntity entity, string entityId, CancellationToken cancellationToken)
 => (await GetAsync <DbVote>(DbVote.CreateId(userId, entity, entityId), cancellationToken))?.ToVote();