Exemplo n.º 1
0
        public DepotView(DTOs.DepotDTO depot)
        {
            Tracks = new List <TrackDepotView>();
            Name   = depot.Name;

            for (int i = 0; i < depot.Tracks.Count; i++)
            {
                TrackDepotView track = new TrackDepotView(depot.Tracks[i]);
                Tracks.Add(track);
            }
        }
Exemplo n.º 2
0
        public TrackDepotView(TrackDepotView track)
        {
            Sectors     = new List <SectorDepotView>();
            OrderNumber = track.OrderNumber;
            TrackNumber = track.TrackNumber;
            Line        = track.Line;

            for (int i = 0; i < track.Sectors.Count; i++)
            {
                SectorDepotView sector = new SectorDepotView(track.Sectors[i]);
                Sectors.Add(sector);
            }
        }