Example #1
0
        public TrainOrderItem(Seat Seat, UserContract UserContract, decimal Price)
        {
            Id                = Guid.NewGuid();
            this.Seat         = Seat;
            this.UserContract = UserContract;

            this.Price = Price;



            AddTime      = DateTimeOffset.Now;
            UpdateTime   = DateTimeOffset.Now;
            AddUserId    = UserHelper.User.Id;
            UpdateUserId = UserHelper.User.Id;
        }
Example #2
0
 public TrainOrderItem(Seat Seat, UserContract UserContract, decimal Price) : base()
 {
     this.Seat         = Seat;
     this.UserContract = UserContract;
     this.Price        = Price;
 }
Example #3
0
 public void RemoveUserContracts(UserContract UserContract)
 {
     UserContracts.Remove(UserContract);
 }
Example #4
0
 public (bool, string, TrainOrder) BookTrainTicket(TrainShift TrainShift, TrainStation StartTrainStation, TrainStation EndTrainStation, IList <SeatTypeConfig> SeatTypes, CustomerInfo CustomerInfo, UserContract UserContract)
 {
     return(BookTrainTicket(TrainShift, StartTrainStation, EndTrainStation, SeatTypes, CustomerInfo, new List <UserContract>()
     {
         UserContract
     }));
 }
Example #5
0
 public void AddUserContract(UserContract UserContract)
 {
     UserContracts.Add(UserContract);
 }