Пример #1
0
        public static Track AsTrack(this OCC.Data.Track t)
        {
            Track track = new Track()
            {
                ID = t.ID,
                Name = t.Name,
                Description = t.Description
            };

            return track;
        }
Пример #2
0
        public static Track AsTrackWithSessions(this Data.Track t)
        {
            Track track = new Track()
            {
                ID = t.ID,
                EventID = t.Event_ID,
                Name = t.Name,
                Description = t.Description
            };

            foreach (var sesion in t.Sessions)
                track.Sessions.Add(sesion.Map());

            return track;
        }
Пример #3
0
        public static Track Map(this Data.Track t)
        {
            Track track = new Track()
            {
                ID = t.ID,
                EventID = t.Event_ID,
                Name = t.Name,
                Description = t.Description
            };

            return track;
        }