示例#1
0
 /// <summary>
 /// Addings the type of the hotel data acc to customer.
 /// </summary>
 /// <param name="hotelReservation">The hotel reservation.</param>
 /// <param name="datesArray">The dates array.</param>
 public static void AddingHotelDataAccToCustomerType(HotelReservation hotelReservation, string[] datesArray)
 {
     try
     {
         //first input was taken as customer type, which is seperated and assigned to customer type
         string customerType = datesArray[0];
         //calling method for adding hotels in list
         hotelReservation.AddingHotelsInList(customerType);
         //creating day of week dates list
     }
     catch (HotelReservationCustomExceptions ex)
     {
         Console.WriteLine(ex.Message);
         Environment.Exit(0);
     }
 }