internal Vote(int userId, VotableEntityType resourceType, int resourceId, VoteDirection direction) { UserId = userId; ResourceType = resourceType; ResourceId = resourceId; Direction = direction; }
public Vote Create(int id, int userId, VotableEntityType entityType, int entityId, VoteDirection direction) => new Vote(id, userId, entityType, entityId, direction);