public Order_DishController(Order_DishRepository repository, OrderRepository orderRepository, TransactionRepository transactionRepository, DishRepository dishRepository)
 {
     _repository           = repository ?? throw new ArgumentNullException(nameof(repository));
     _orderRepository      = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _transationRepository = transactionRepository ?? throw new ArgumentNullException(nameof(transactionRepository));
     _dishRepository       = dishRepository ?? throw new ArgumentNullException(nameof(dishRepository));
 }
 public DishController(DishRepository repository, Order_DishRepository orderDishRepository, OrderRepository orderRepository, TransactionRepository transactionRepository, IngredientRepository ingredientRepository, Dish_IngredientRepository dishIngredientRepository)
 {
     _repository               = repository ?? throw new ArgumentNullException(nameof(repository));
     _orderDishRepository      = orderDishRepository ?? throw new ArgumentNullException(nameof(orderDishRepository));
     _orderRepository          = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository));
     _transactionRepository    = transactionRepository ?? throw new ArgumentNullException(nameof(transactionRepository));
     _ingredientRepository     = ingredientRepository ?? throw new ArgumentNullException(nameof(ingredientRepository));
     _dishIngredientRepository = dishIngredientRepository ?? throw new ArgumentException(nameof(dishIngredientRepository));
 }
Example #3
0
 public OrderController(OrderRepository repository, In_Store_OrderRepository in_store_orderRepository, Online_OrderRepository online_orderRepository, TransactionRepository transactionRepository, Customer_TransactionRepository customer_TransactionRepository, TableRepository tableRepository, Order_DishRepository orderDishRepository, DishRepository dishRepository, CustomerRepository customerRepository)
 {
     _repository = repository ?? throw new ArgumentNullException(nameof(repository));
     _in_store_orderRepository       = in_store_orderRepository ?? throw new ArgumentNullException(nameof(in_store_orderRepository));
     _online_orderRepository         = online_orderRepository ?? throw new ArgumentNullException(nameof(online_orderRepository));
     _transactionRepository          = transactionRepository ?? throw new ArgumentNullException(nameof(transactionRepository));
     _customer_TransactionRepository = customer_TransactionRepository ?? throw new ArgumentNullException(nameof(customer_TransactionRepository));
     _tableRepository     = tableRepository ?? throw new ArgumentNullException(nameof(tableRepository));
     _orderDishRepository = orderDishRepository ?? throw new ArgumentNullException(nameof(orderDishRepository));
     _dishRepository      = dishRepository ?? throw new ArgumentException(nameof(dishRepository));
     _customerRepository  = customerRepository ?? throw new ArgumentNullException(nameof(customerRepository));
 }