Exemple #1
0
        public static void ShowOrderByDateInterval(ref RestaurantManager restaurantManager)
        {
            Console.WriteLine("Enter first date");
            DateTime datefirstTime = Convert.ToDateTime(Console.ReadLine());

            restaurantManager.GetOrderByDate(datefirstTime);

            Console.WriteLine("Enter second date");
            DateTime datesecondTime = Convert.ToDateTime(Console.ReadLine());

            restaurantManager.GetOrderByDate(datefirstTime);

            restaurantManager.GetOrdersByDatesInterval(datefirstTime, datesecondTime);
        }
Exemple #2
0
        public static void ShowOrderByDate(ref RestaurantManager restaurantManager)
        {
            Console.WriteLine("Enter first date:");
            DateTime dateTime = Convert.ToDateTime(Console.ReadLine());

            restaurantManager.GetOrderByDate(dateTime);
        }