예제 #1
0
        public static TrackViewModel CreateNew(TrackTypeViewModel trackTypeViewModel)
        {
            TrackStraight trackStraight = new TrackStraight
            {
                Article  = string.Empty,
                LengthId = trackTypeViewModel.Lengths.First().Id
            };

            return(new TrackStraightViewModel(trackTypeViewModel, trackStraight));
        }
예제 #2
0
 public TrackStraightViewModel(TrackTypeViewModel trackTypeViewModel, TrackStraight track) : base(trackTypeViewModel, track)
 {
     this.track = track;
 }