Exemplo n.º 1
0
 internal Vote(int userId, VotableEntityType resourceType, int resourceId, VoteDirection direction)
 {
     UserId       = userId;
     ResourceType = resourceType;
     ResourceId   = resourceId;
     Direction    = direction;
 }
Exemplo n.º 2
0
 public Vote Create(int id, int userId, VotableEntityType entityType, int entityId, VoteDirection direction) => new Vote(id, userId, entityType, entityId, direction);