// click submit to create the booking protected void Click_submit(object sender, EventArgs e) { manager = new BookingManager(); manager.CreateRoom(); manager.BookedRoom.Roomtype = (RoomType.Type)chooseRoom.SelectedIndex; manager.BookedRoom.RoomId = int.Parse(RoomNumber.Text); manager.BookedRoom.CheckinDate = starteDate.SelectedDate.ToString(); manager.BookedRoom.CheckOutDate = endDate.SelectedDate.ToString(); Debug.WriteLine(manager.BookedRoom.RoomId); manager.Customer.Firstname = firstname.Text; manager.Customer.Lastname = lastname.Text; manager.Customer.Address = address.Text; manager.Customer.Phone = int.Parse(phone.Text); manager.Customer.Zipcode = int.Parse(zipCode.Text); manager.Customer.City = city.Text; manager.Customer.Email = email.Text; bool booked = manager.CreateReservation(); Debug.WriteLine($"is the room booked: {booked}"); }