//PRIVATE CONSTRUCTOR FOR INTERNAL USE private Reservation(string reservationsnummer, DateTime startDate, DateTime endDate, CarCategory bilCat, RentalStation startStation, RentalStation endStation, string firstName, string lastName, string address, int telephoneNumber, string email, double totalPrize) { // NOT IMPLEMENTED OR USED YET this.Reservationsnummer = reservationsnummer; this.StartDate = startDate; this.EndDate = endDate; this.BilCat = bilCat; this.StartStation = startStation; this.EndStation = endStation; this.Customer.FirstName = firstName; this.Customer.LastName = lastName; this.Customer.Street = address; this.Customer.TelephoneNumber = telephoneNumber.ToString(); this.Customer.Email = email; this.TotalPrize = totalPrize; this.Status = Status.Active; }
public RentalAgent(string fname, string lname, string uname, int aid, string sal, string hpass, RentalStation loka) { this.FirstName = fname; this.LastName = lname; this.UserName = uname; this.AgentId = aid; this.Salt = sal; this.HashPass = new LoginHelper().Hasher(hpass, sal); this.PrimaryLocation = loka; }