Example #1
0
 private static void FillSportOverview(Model.Service.Model.SportOverview to, Model.Interface.ISportOverview from)
 {
     to.Name         = from.Name;
     to.InErrorState = from.InErrorState;
     to.InPlay       = from.InPlay;
     to.InPreMatch   = from.InPreMatch;
     to.InSetup      = from.InSetup;
     to.Total        = from.Total;
 }
Example #2
0
        public IEnumerable <Model.Service.Model.Interface.ISportOverview> GetSports()
        {
            List <Model.Service.Model.Interface.ISportOverview> sports = new List <Model.Service.Model.Interface.ISportOverview>();

            foreach (var sport in Supervisor.GetSports())
            {
                Model.Service.Model.SportOverview sp = new Model.Service.Model.SportOverview();
                FillSportOverview(sp, sport);
                sports.Add(sp);
            }

            return(sports);
        }
        public IEnumerable<Model.Service.Model.Interface.ISportOverview> GetSports()
        {
            List<Model.Service.Model.Interface.ISportOverview> sports = new List<Model.Service.Model.Interface.ISportOverview>();

            foreach (var sport in Supervisor.GetSports())
            {
                Model.Service.Model.SportOverview sp = new Model.Service.Model.SportOverview();
                FillSportOverview(sp, sport);
                sports.Add(sp);
            }

            return sports;
        }