Esempio n. 1
0
        public Data.JudgeRound CreateInDatabase(int roundId)
        {
            WeebulEntities entities = DataHelpers.Entities;

            Data.JudgeRound dataRound = entities.JudgeRounds.Create();

            dataRound.RoundId       = roundId;
            dataRound.JudgeNumber   = JudgeNumber;
            dataRound.Fighter1Score = Score.Fighter1Score;
            dataRound.Fighter2Score = Score.Fighter2Score;
            dataRound = entities.JudgeRounds.Add(dataRound);
            return(dataRound);
        }
Esempio n. 2
0
 public JudgeRound(Data.JudgeRound dataRound) : this(dataRound.JudgeNumber, dataRound.Fighter1Score, dataRound.Fighter2Score, dataRound.Round.RoundNumber)
 {
 }