Ejemplo n.º 1
0
        public static Knockout Create(CompetitionStage stage)
        {
            var data = new Knockout
            {
                Competition      = stage.Competition,
                Season           = stage.Competition.Season,
                CompetitionStage = stage
            };

            return(data);
        }
Ejemplo n.º 2
0
        public virtual CompetitionStage CreateStage(CompetitionStageFormats format, string name, byte sequence)
        {
            var data = new CompetitionStage
            {
                Competition = this,
                CompetitionStageFormatID = format,
                Name     = name,
                Sequence = sequence
            };

            this.Stages.Add(data);

            return(data);
        }
Ejemplo n.º 3
0
        public static League Create(string code, string name, LeagueCalculationEngines leagueCalculationEngine, CompetitionStage stage)
        {
            var data = new League
            {
                Code        = code,
                Competition = stage.Competition,
                Name        = name,
                LeagueCalculationEngineID = leagueCalculationEngine,
                Season           = stage.Competition.Season,
                CompetitionStage = stage
            };

            return(data);
        }