public Ownership(uint gameId, uint id, string date, OwnershipState state, string accountId) { GameId = gameId; OwnershipId = id; RegisteredDate = date; State = state; UserAccountId = accountId; }
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; }