public MenuController(MenuApplication menuApplication) { if (menuApplication == null) { throw new ArgumentNullException(nameof(menuApplication)); } _menuApp = menuApplication; }
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; }