Beispiel #1
0
        private void SearchReservation()
        {
            Console.Write("What is the arrival date? Year-Month-Date ");
            string   arrival   = Console.ReadLine();
            DateTime startDate = Convert.ToDateTime(arrival).Date;

            Console.Write("What is the departure date? Year-Month-Date ");
            string       depart   = Console.ReadLine();
            DateTime     endDate  = Convert.ToDateTime(depart).Date;
            IList <Site> siteList = siteObj.GetSites(chosenCamp.CampgroundId, startDate, endDate);

            if (siteList.Count == 0)
            {
                Pause("There are no available sites");
                return;
            }
            CreateReservation(siteList, startDate, endDate);
        }