예제 #1
0
파일: Vote.cs 프로젝트: maoyuan121/Updog.in
 internal Vote(int userId, VotableEntityType resourceType, int resourceId, VoteDirection direction)
 {
     UserId       = userId;
     ResourceType = resourceType;
     ResourceId   = resourceId;
     Direction    = direction;
 }
예제 #2
0
 public Vote Create(int id, int userId, VotableEntityType entityType, int entityId, VoteDirection direction) => new Vote(id, userId, entityType, entityId, direction);