Пример #1
0
        public static Match MatchContractToMatch(MatchContract m)
        {
            Match match = new Match();
            match.ID = m.ID;
            match.Jedi1 = JediAdapter.JediContractToJedi(m.Jedi1);
            match.Jedi2 = JediAdapter.JediContractToJedi(m.Jedi2);
            match.Vainqueur = JediAdapter.JediContractToJedi(m.Vainqueur);
            match.PhaseTournoi = (EPhaseTournoi)m.PhaseTournoi;
            match.Stade = StadeAdapter.StadeContractToStade(m.Stade);

            return match;
        }
Пример #2
0
 public void UpdateMatch(MatchContract match)
 {
     jtm.UpdateMatch(MatchAdapter.MatchContractToMatch(match));
 }
Пример #3
0
 public void DelMatch(MatchContract match)
 {
     jtm.DelMatch(MatchAdapter.MatchContractToMatch(match));
 }
Пример #4
0
        public MatchContract AddMatch(MatchContract match)
        {
            jtm.AddMatch(MatchAdapter.MatchContractToMatch(match));

            return match;
        }