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); }
public JudgeRound(Data.JudgeRound dataRound) : this(dataRound.JudgeNumber, dataRound.Fighter1Score, dataRound.Fighter2Score, dataRound.Round.RoundNumber) { }