public void AddAttackToDb(IAttack attack) { myGameDbManager.AddAttack(attack.DbAttack); if (attack.Shots.Count > 0) { attack.Shots.ForEach(s => { myGameDbManager.AddShot(s); }); } if (attack.Rebounds.Count > 0) { attack.Rebounds.ForEach(r => { myGameDbManager.AddRebound(r); }); } if (attack.Goal != null) { myGameDbManager.AddGoal(attack.Goal); } // TODO myRemoteDbManager.InsertAttack(attack); }