public void AddOrUpdateGame(Game game) { _dbUsersEntities.Games.Add(game); _dbUsersEntities.SaveChanges(); }
public void AddOrUpdateUser(User user) { _dbUsersEntities.Users.AddOrUpdate(user); _dbUsersEntities.SaveChanges(); }