public static Track AsTrack(this OCC.Data.Track t) { Track track = new Track() { ID = t.ID, Name = t.Name, Description = t.Description }; return track; }
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; }
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; }