Exemplo n.º 1
0
        public FreezeSeatInfo(TrainShift TrainShift, DestinationSeat DestinationSeat) : base()
        {
            this.DestinationSeat = DestinationSeat;
            this.TrainShift      = TrainShift;

            TrainShift.FreezeSeatInfos.Add(this);
        }
Exemplo n.º 2
0
        public SaleSeatInfo(TrainShift TrainShift, DestinationSeat DestinationSeat)
        {
            this.DestinationSeat = DestinationSeat;
            this.TrainShift      = TrainShift;
            AddTime      = DateTimeOffset.Now;
            UpdateTime   = DateTimeOffset.Now;
            AddUserId    = UserHelper.User.Id;
            UpdateUserId = UserHelper.User.Id;

            TrainShift.SaleSeatInfos.Add(this);
        }