public TrainOrder(TrainStation StartTrainStation, TrainStation EndTrainStation, CustomerInfo CustomerInfo, IList <TrainOrderItem> TrainOrderItems) : base() { this.OrderNo = GenerateOrderNoHelp.GenerateOrderNo(); this.StartTrainStation = StartTrainStation; this.EndTrainStation = EndTrainStation; this.CustomerInfo = CustomerInfo; this.Status = OrderStatusType.PrePay; this.TrainOrderItems = TrainOrderItems; }
public TrainOrder(TrainStation StartTrainStation, TrainStation EndTrainStation, CustomerInfo CustomerInfo, IList <TrainOrderItem> TrainOrderItems) { Id = Guid.NewGuid(); this.OrderNo = GenerateOrderNoHelp.GenerateOrderNo(); this.StartTrainStation = StartTrainStation; this.EndTrainStation = EndTrainStation; this.CustomerInfo = CustomerInfo; this.Status = OrderStatusType.PrePay; this.TrainOrderItems = TrainOrderItems; AddTime = DateTimeOffset.Now; UpdateTime = DateTimeOffset.Now; AddUserId = UserHelper.User.Id; UpdateUserId = UserHelper.User.Id; }