예제 #1
0
        public MainViewModel()
        {
            Competition = new CompetitionVM();

            MyModel myModel = new MyModel();
            Competition comp = myModel.Competitions.First();
               //Competition = new CompetitionVM(comp);
        }
예제 #2
0
        public MainViewModel()
        {
            MyContext container = new MyContext();
            Competition comp = container.Competitions.Include("Teams").First();

            //Competition = new CompetitionVM();

               Competition = new CompetitionVM(comp);
        }
예제 #3
0
        public MainViewModel()
        {
            Competition = new CompetitionVM();


            MyModel     myModel = new MyModel();
            Competition comp    = myModel.Competitions.First();
            //Competition = new CompetitionVM(comp);
        }
예제 #4
0
        public MainViewModel()
        {
            MyContext   container = new MyContext();
            Competition comp      = container.Competitions.Include("Teams").First();

            //Competition = new CompetitionVM();

            Competition = new CompetitionVM(comp);
        }
예제 #5
0
        public MainViewModel()
        {
            Competition = new CompetitionVM();

               //Competition = new CompetitionVM(comp);
        }