示例#1
0
        //public CompetitionVM()
        //{
        //    Date = new DateTime(2015, 10, 03, 14, 0, 0);
        //}
        public CompetitionVM(Competition comp)
        {
            this.comp = comp;

            Team[] teams = comp.Teams.ToArray();

            if (teams.Length >= 2)
            {
                TeamOne = new TeamVM(teams[0]);
                TeamTwo = new TeamVM(teams[1]);
            }
        }
示例#2
0
        //public CompetitionVM()
        //{
        //    Date = new DateTime(2015, 10, 03, 14, 0, 0);
        //}


        public CompetitionVM(Competition comp)
        {
            this.comp = comp;


            Team[] teams = comp.Teams.ToArray();

            if (teams.Length >= 2)
            {
                TeamOne = new TeamVM(teams[0]);
                TeamTwo = new TeamVM(teams[1]);
            }
        }