public void AddGoal(Guid playerId, Guid assistId, Guid goalTypeId) { Goal = new DbAttackGoal { Id = Guid.NewGuid(), PlayerId = playerId, AssistPlayerId = assistId, GoalTypeId = goalTypeId }; DbAttack.GoalId = Goal.Id; }
public void RemoveGoal(DbAttackGoal goal) { myDbConnection.Delete(goal); }
public void AddGoal(DbAttackGoal goal) { myDbConnection.Insert(goal); }