public void AddOwnedGame(OwnedGame ownedGame) { if (OwnedGames == null) { OwnedGames = new HashSet <OwnedGame>(); } OwnedGames.Add(ownedGame); ownedGame.AppUser = this; }
public void AddOwnedGame(OwnedGame ownedGame) { if (OwnedGames == null) { OwnedGames = new HashSet<OwnedGame>(); } OwnedGames.Add(ownedGame); ownedGame.AppUser = this; }
public void UpdateOwnedGame(OwnedGame ownedGame) { OwnedGame targetOwnedGame = context.OwnedGames.Find(ownedGame.OwnedGameID); if (targetOwnedGame != null) { targetOwnedGame.MinutesPlayed = ownedGame.MinutesPlayed; } }
public void InsertOwnedGame(OwnedGame ownedGame) { context.OwnedGames.Add(ownedGame); }