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; }
public TrainOrderItem(Seat Seat, UserContract UserContract, decimal Price) : base() { this.Seat = Seat; this.UserContract = UserContract; this.Price = Price; }
public void RemoveUserContracts(UserContract UserContract) { UserContracts.Remove(UserContract); }
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 })); }
public void AddUserContract(UserContract UserContract) { UserContracts.Add(UserContract); }