Esempio n. 1
0
        public MenuController(MenuApplication menuApplication)
        {
            if (menuApplication == null)
            {
                throw new ArgumentNullException(nameof(menuApplication));
            }

            _menuApp = menuApplication;
        }
Esempio n. 2
0
        public OrdersController(BookingApplication bookingApplication, MenuApplication menuApplication)
        {
            if (bookingApplication == null)
            {
                throw new ArgumentNullException(nameof(bookingApplication));
            }

            _bookingApp = bookingApplication;

            if (menuApplication == null)
            {
                throw new ArgumentNullException(nameof(menuApplication));
            }

            _menuApp = menuApplication;
        }