Example #1
0
        public static TrackViewModel CreateNew(TrackTypeViewModel trackTypeViewModel)
        {
            TrackEndPiece trackEndPiece = new TrackEndPiece
            {
                Article  = string.Empty,
                LengthId = trackTypeViewModel.Lengths.First().Id
            };

            return(new TrackEndPieceViewModel(trackTypeViewModel, trackEndPiece));
        }
Example #2
0
 public TrackEndPieceViewModel(TrackTypeViewModel trackTypeViewModel, TrackEndPiece track) : base(trackTypeViewModel, track)
 {
     this.track = track;
 }