Ejemplo n.º 1
0
 public Ownership(uint gameId, uint id, string date, OwnershipState state, string accountId)
 {
     GameId         = gameId;
     OwnershipId    = id;
     RegisteredDate = date;
     State          = state;
     UserAccountId  = accountId;
 }
Ejemplo n.º 2
0
        public void NewOwnership(uint gameId, string date, OwnershipState state, string accountId)
        {
            var newOwnershipId  = (uint)(locOwnership.Count() + 1);
            var newOwnership    = new Ownership(gameId, newOwnershipId, date, state, accountId);
            var newLocOwnership = locOwnership.ToList();

            newLocOwnership.Add(newOwnership);
            locOwnership = newLocOwnership;
        }